function HandlerBase::ensureMyTable

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::ensureMyTable()
  2. 8.9.x core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::ensureMyTable()
  3. 10 core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::ensureMyTable()

Overrides ViewsHandlerInterface::ensureMyTable

48 calls to HandlerBase::ensureMyTable()
Access::query in core/modules/node/src/Plugin/views/filter/Access.php
See _node_access_where_sql() for a non-views query based implementation.
ArgumentPluginBase::query in core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
Set up the query for this argument.
ArgumentPluginBase::summaryQuery in core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
Build the info for the summary query.
BooleanOperator::query in core/modules/views/src/Plugin/views/filter/BooleanOperator.php
Add this filter to the query.
BooleanOperatorString::query in core/modules/views/src/Plugin/views/filter/BooleanOperatorString.php
Add this filter to the query.

... See full list

2 methods override HandlerBase::ensureMyTable()
ManyToOne::ensureMyTable in core/modules/views/src/Plugin/views/filter/ManyToOne.php
Ensures that the main table for this handler is in the query.
ManyToOne::ensureMyTable in core/modules/views/src/Plugin/views/argument/ManyToOne.php
Ensures that the main table for this handler is in the query.

File

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

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.