public function HandlerBase::ensureMyTable in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/HandlerBase.php \Drupal\views\Plugin\views\HandlerBase::ensureMyTable()
Ensure the main table for this handler is in the query. This is used a lot.
Overrides ViewsHandlerInterface::ensureMyTable
49 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 - Override ensureMyTable so we can control how this joins in. The operator actually has influence over joining.
- ManyToOne::ensureMyTable in core/
modules/ views/ src/ Plugin/ views/ argument/ ManyToOne.php - Override ensureMyTable so we can control how this joins in. The operator actually has influence over joining.
File
- core/
modules/ views/ src/ Plugin/ views/ HandlerBase.php, line 552 - Contains \Drupal\views\Plugin\views\HandlerBase.
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;
}