function Query::getTables

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/Query/Sql/Query.php \Drupal\Core\Entity\Query\Sql\Query::getTables()
  2. 8.9.x core/lib/Drupal/Core/Entity/Query/Sql/Query.php \Drupal\Core\Entity\Query\Sql\Query::getTables()
  3. 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 329

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.