public function ViewExecutable::getBaseTables

Create a list of base tables eligible for this view. Used primarily for the UI. Display must be already initialized.

File

drupal/core/modules/views/lib/Drupal/views/ViewExecutable.php, line 777
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\views

Code

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;
}