Create a list of base tables eligible for this view. Used primarily for the UI. Display must be already initialized.
public function getBaseTables() {
$base_tables = array(
$this->storage
->get('base_table') => TRUE,
'#global' => TRUE,
);
foreach ($this->display_handler
->getHandlers('relationship') as $handler) {
$base_tables[$handler->definition['base']] = TRUE;
}
return $base_tables;
}