You are here

public function SelectionInterface::entityQueryAlter in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionInterface.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface::entityQueryAlter()

Allows the selection to alter the SelectQuery generated by EntityFieldQuery.

Parameters

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

1 method overrides SelectionInterface::entityQueryAlter()
SelectionPluginBase::entityQueryAlter in core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginBase.php
Allows the selection to alter the SelectQuery generated by EntityFieldQuery.

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