You are here

public function Query::getTables in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/Query/Sql/Query.php \Drupal\Core\Entity\Query\Sql\Query::getTables()
  2. 10 core/lib/Drupal/Core/Entity/Query/Sql/Query.php \Drupal\Core\Entity\Query\Sql\Query::getTables()

Gets the Tables object for this query.

Parameters

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

Return value

\Drupal\Core\Entity\Query\Sql\TablesInterface The object that adds tables and fields to the SQL query object.

1 call to Query::getTables()
Query::getSqlField in core/lib/Drupal/Core/Entity/Query/Sql/Query.php
Constructs a select expression for a given field and language.

File

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

Class

Query
The SQL storage entity query class.

Namespace

Drupal\Core\Entity\Query\Sql

Code

public function getTables(SelectInterface $sql_query) {
  $class = static::getClass($this->namespaces, 'Tables');
  return new $class($sql_query);
}