You are here

public function HandlerBase::ensureMyTable in Views (for Drupal 7) 8.3

Ensure the main table for this handler is in the query. This is used a lot.

56 calls to HandlerBase::ensureMyTable()
Access::query in lib/Views/node/Plugin/views/filter/Access.php
See _node_access_where_sql() for a non-views query based implementation.
ArgumentPluginBase::query in lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
Set up the query for this argument.
ArgumentPluginBase::summary_query in lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
Build the info for the summary query.
BooleanOperator::query in lib/Drupal/views/Plugin/views/filter/BooleanOperator.php
Add this filter to the query.
BooleanOperatorString::query in lib/Drupal/views/Plugin/views/filter/BooleanOperatorString.php
Add this filter to the query.

... See full list

8 methods override HandlerBase::ensureMyTable()
Broken::ensureMyTable in lib/Drupal/views/Plugin/views/area/Broken.php
Ensure the main table for this handler is in the query. This is used a lot.
Broken::ensureMyTable in lib/Drupal/views/Plugin/views/relationship/Broken.php
Ensure the main table for this handler is in the query. This is used a lot.
Broken::ensureMyTable in lib/Drupal/views/Plugin/views/filter/Broken.php
Ensure the main table for this handler is in the query. This is used a lot.
Broken::ensureMyTable in lib/Drupal/views/Plugin/views/sort/Broken.php
Ensure the main table for this handler is in the query. This is used a lot.
Broken::ensureMyTable in lib/Drupal/views/Plugin/views/argument/Broken.php
Ensure the main table for this handler is in the query. This is used a lot.

... See full list

File

lib/Drupal/views/Plugin/views/HandlerBase.php, line 539
Definition of Drupal\views\Plugin\views\HandlerBase.

Class

HandlerBase

Namespace

Drupal\views\Plugin\views

Code

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