function HandlerBase::ensureMyTable
Ensures that the main table for this handler is in the query.
This is used a lot.
Overrides ViewsHandlerInterface::ensureMyTable
47 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.
 
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 644  
Class
- HandlerBase
 - Base class for Views handler plugins.
 
Namespace
Drupal\views\Plugin\viewsCode
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.