W3cubDocs

/Drupal 8

public function Query::getTables

public Query::getTables(SelectInterface $sql_query)

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.

File

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

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Query!Sql!Query.php/function/Query::getTables/8.1.x