public function ViewExecutable::getBaseTables in Views (for Drupal 7) 8.3
Create a list of base tables eligible for this view. Used primarily for the UI. Display must be already initialized.
File
- lib/
Drupal/ views/ ViewExecutable.php, line 754 - Definition of Drupal\views\ViewExecutable.
Class
- ViewExecutable
- An object to contain all of the data to generate a view, plus the member functions to build the view query, execute the query and render the output.
Namespace
Drupal\viewsCode
public function getBaseTables() {
$base_tables = array(
$this->storage->base_table => TRUE,
'#global' => TRUE,
);
foreach ($this->display_handler
->getHandlers('relationship') as $handler) {
$base_tables[$handler->definition['base']] = TRUE;
}
return $base_tables;
}