function Tables::__construct
Same name in this branch
- main core/modules/workspaces/src/EntityQuery/Tables.php \Drupal\workspaces\EntityQuery\Tables::__construct()
Same name and namespace in other branches
- 11.x core/modules/workspaces/src/EntityQuery/Tables.php \Drupal\workspaces\EntityQuery\Tables::__construct()
- 11.x core/lib/Drupal/Core/Entity/Query/Sql/Tables.php \Drupal\Core\Entity\Query\Sql\Tables::__construct()
- 10 core/modules/workspaces/src/EntityQuery/Tables.php \Drupal\workspaces\EntityQuery\Tables::__construct()
- 10 core/lib/Drupal/Core/Entity/Query/Sql/Tables.php \Drupal\Core\Entity\Query\Sql\Tables::__construct()
- 9 core/modules/workspaces/src/EntityQuery/Tables.php \Drupal\workspaces\EntityQuery\Tables::__construct()
- 9 core/lib/Drupal/Core/Entity/Query/Sql/Tables.php \Drupal\Core\Entity\Query\Sql\Tables::__construct()
- 8.9.x core/modules/workspaces/src/EntityQuery/Tables.php \Drupal\workspaces\EntityQuery\Tables::__construct()
- 8.9.x core/lib/Drupal/Core/Entity/Query/Sql/Tables.php \Drupal\Core\Entity\Query\Sql\Tables::__construct()
Parameters
\Drupal\Core\Database\Query\SelectInterface $sqlQuery: The SQL query.
1 call to Tables::__construct()
- Tables::__construct in core/
modules/ workspaces/ src/ EntityQuery/ Tables.php
1 method overrides Tables::__construct()
- Tables::__construct in core/
modules/ workspaces/ src/ EntityQuery/ Tables.php
File
-
core/
lib/ Drupal/ Core/ Entity/ Query/ Sql/ Tables.php, line 77
Class
- Tables
- Adds database tables and fields to the SQL entity query.
Namespace
Drupal\Core\Entity\Query\SqlCode
public function __construct(protected SelectInterface $sqlQuery) {
$this->entityTypeManager = \Drupal::entityTypeManager();
$this->entityFieldManager = \Drupal::service('entity_field.manager');
if ($base_table = $this->sqlQuery
->getMetaData('entity_query_base_table')) {
$this->entityTables['base_table.' . $base_table] = 'base_table';
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.