You are here

public function Sql::getTableQueue in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/query/Sql.php \Drupal\views\Plugin\views\query\Sql::getTableQueue()

Returns a reference to the table queue array for this query.

Because this method returns by reference, alter hooks may edit the tables array directly to make their changes. If just adding tables, however, the use of the addTable() method is preferred.

Note that if you want to manipulate the table queue array, this method must be called by reference as well:

$tables =& $query
  ->getTableQueue();

Return value

array A reference to the table queue array structure.

File

core/modules/views/src/Plugin/views/query/Sql.php, line 232

Class

Sql
Views query plugin for an SQL query.

Namespace

Drupal\views\Plugin\views\query

Code

public function &getTableQueue() {
  return $this->tableQueue;
}