You are here

public function DefaultSelection::entityQueryAlter in Zircon Profile 8.0

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

Allows the selection to alter the SelectQuery generated by EntityFieldQuery.

Parameters

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

Overrides SelectionInterface::entityQueryAlter

3 methods override DefaultSelection::entityQueryAlter()
CommentSelection::entityQueryAlter in core/modules/comment/src/Plugin/EntityReferenceSelection/CommentSelection.php
Allows the selection to alter the SelectQuery generated by EntityFieldQuery.
TermSelection::entityQueryAlter in core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php
Allows the selection to alter the SelectQuery generated by EntityFieldQuery.
UserSelection::entityQueryAlter in core/modules/user/src/Plugin/EntityReferenceSelection/UserSelection.php
Allows the selection to alter the SelectQuery generated by EntityFieldQuery.

File

core/lib/Drupal/Core/Entity/Plugin/EntityReferenceSelection/DefaultSelection.php, line 384
Contains \Drupal\Core\Entity\Plugin\EntityReferenceSelection\DefaultSelection.

Class

DefaultSelection
Default plugin implementation of the Entity Reference Selection plugin.

Namespace

Drupal\Core\Entity\Plugin\EntityReferenceSelection

Code

public function entityQueryAlter(SelectInterface $query) {
}