public function SelectionInterface::entityQueryAlter

public SelectionInterface::entityQueryAlter(SelectInterface $query)

Allows the selection to alter the SelectQuery generated by EntityFieldQuery.

Parameters

\Drupal\Core\Database\Query\SelectInterface $query: A Select Query object.

File

core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionInterface.php, line 49

Class

SelectionInterface
Interface definition for Entity Reference Selection plugins.

Namespace

Drupal\Core\Entity\EntityReferenceSelection

Code

public function entityQueryAlter(SelectInterface $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!EntityReferenceSelection!SelectionInterface.php/function/SelectionInterface::entityQueryAlter/8.1.x