function Query::getTables

Same name and namespace in other branches
  1. 11.x 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()
  3. 9 core/lib/Drupal/Core/Entity/Query/Sql/Query.php \Drupal\Core\Entity\Query\Sql\Query::getTables()
  4. 8.9.x 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. Deprecated, do not use.

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 353

Class

Query
The SQL storage entity query class.

Namespace

Drupal\Core\Entity\Query\Sql

Code

public function getTables(?SelectInterface $sql_query = NULL) {
  if (isset($sql_query)) {
    @trigger_error('Passing $sql_query to \\Drupal\\Core\\Entity\\Query\\Sql\\Query::getTables() is deprecated in drupal:11.4.0 and removed in drupal:13.0.0. See https://www.drupal.org/node/3585318', E_USER_DEPRECATED);
  }
  return $this->doGetTables($sql_query);
}

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