Unverified Commit 6930e1b1 authored by larowlan's avatar larowlan

Issue #2929835 by amateescu, dawehner: [regression] Modules can no longer...

Issue #2929835 by amateescu, dawehner: [regression] Modules can no longer alter the the table queue of a \Drupal\views\Plugin\views\query\Sql query object
parent 3e037635
......@@ -198,6 +198,27 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o
];
}
/**
* 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:
*
* @code
* $tables =& $query->getTableQueue();
* @endcode
*
* @return array
* A reference to the table queue array structure.
*/
public function &getTableQueue() {
return $this->tableQueue;
}
/**
* Set the view to be distinct (per base field).
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment