function HandlerBase::ensureMyTable

Same name and namespace in other branches
  1. 11.x core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::ensureMyTable()
  2. 10 core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::ensureMyTable()
  3. 8.9.x core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::ensureMyTable()
1 call to HandlerBase::ensureMyTable()
Status::query in core/modules/media/src/Plugin/views/filter/Status.php
Add this filter to the query.

File

core/modules/views/src/Plugin/views/HandlerBase.php, line 544

Class

HandlerBase
Base class for Views handler plugins.

Namespace

Drupal\views\Plugin\views

Code

public function ensureMyTable() {
  if (!isset($this->tableAlias)) {
    $this->tableAlias = $this->query
      ->ensureTable($this->table, $this->relationship);
  }
  return $this->tableAlias;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.