public function HandlerBase::ensureMyTable

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

51 calls to HandlerBase::ensureMyTable()
Access::query in drupal/core/modules/node/lib/Drupal/node/Plugin/views/filter/Access.php
See _node_access_where_sql() for a non-views query based implementation.
ArgumentPluginBase::query in drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
Set up the query for this argument.
ArgumentPluginBase::summaryQuery in drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
Build the info for the summary query.
BooleanOperator::query in drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/BooleanOperator.php
Add this filter to the query.
BooleanOperatorString::query in drupal/core/modules/views/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 drupal/core/modules/views/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 drupal/core/modules/views/lib/Drupal/views/Plugin/views/field/Broken.php
Ensure the main table for this handler is in the query. This is used a lot.
Broken::ensureMyTable in drupal/core/modules/views/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 drupal/core/modules/views/lib/Drupal/views/Plugin/views/argument/Broken.php
Ensure the main table for this handler is in the query. This is used a lot.
Broken::ensureMyTable in drupal/core/modules/views/lib/Drupal/views/Plugin/views/sort/Broken.php
Ensure the main table for this handler is in the query. This is used a lot.

... See full list

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/HandlerBase.php, line 528
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;
}