You are here

public function Tables::__construct in Drupal 10

Same name in this branch
  1. 10 core/modules/workspaces/src/EntityQuery/Tables.php \Drupal\workspaces\EntityQuery\Tables::__construct()
  2. 10 core/lib/Drupal/Core/Entity/Query/Sql/Tables.php \Drupal\Core\Entity\Query\Sql\Tables::__construct()
Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/Query/Sql/Tables.php \Drupal\Core\Entity\Query\Sql\Tables::__construct()
  2. 9 core/lib/Drupal/Core/Entity/Query/Sql/Tables.php \Drupal\Core\Entity\Query\Sql\Tables::__construct()

Parameters

\Drupal\Core\Database\Query\SelectInterface $sql_query: The SQL query.

File

core/lib/Drupal/Core/Entity/Query/Sql/Tables.php, line 71

Class

Tables
Adds tables and fields to the SQL entity query.

Namespace

Drupal\Core\Entity\Query\Sql

Code

public function __construct(SelectInterface $sql_query) {
  $this->sqlQuery = $sql_query;
  $this->entityTypeManager = \Drupal::entityTypeManager();
  $this->entityFieldManager = \Drupal::service('entity_field.manager');
}