You are here

public function ViewExecutable::getBaseTables in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/ViewExecutable.php \Drupal\views\ViewExecutable::getBaseTables()

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

File

core/modules/views/src/ViewExecutable.php, line 914
Contains \Drupal\views\ViewExecutable.

Class

ViewExecutable
Represents a view as a whole.

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