public function SelectionInterface::entityQueryAlter

Allows the selection to alter the SelectQuery generated by EntityFieldQuery.

Parameters

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

3 methods override SelectionInterface::entityQueryAlter()
SelectionBase::entityQueryAlter in drupal/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/entity_reference/selection/SelectionBase.php
Implements SelectionInterface::entityQueryAlter().
SelectionBroken::entityQueryAlter in drupal/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/Type/Selection/SelectionBroken.php
Implements SelectionInterface::entityQueryAlter().
ViewsSelection::entityQueryAlter in drupal/core/modules/views/lib/Drupal/views/Plugin/entity_reference/selection/ViewsSelection.php
Implements \Drupal\entity_reference\Plugin\Type\Selection\SelectionInterface::entityQueryAlter().

File

drupal/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/Type/Selection/SelectionInterface.php, line 71
Contains \Drupal\entity_reference\Plugin\Type\Selection\SelectionInterface.

Class

SelectionInterface
Interface definition for Entity Reference selection plugins.

Namespace

Drupal\entity_reference\Plugin\Type\Selection

Code

public function entityQueryAlter(SelectInterface $query);