You are here

public function SelectionPluginBase::entityQueryAlter in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginBase.php \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginBase::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

2 calls to SelectionPluginBase::entityQueryAlter()
CommentSelection::entityQueryAlter in core/modules/comment/src/Plugin/EntityReferenceSelection/CommentSelection.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.
2 methods override SelectionPluginBase::entityQueryAlter()
CommentSelection::entityQueryAlter in core/modules/comment/src/Plugin/EntityReferenceSelection/CommentSelection.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/EntityReferenceSelection/SelectionPluginBase.php, line 96

Class

SelectionPluginBase
Provides a base class for configurable selection handlers.

Namespace

Drupal\Core\Entity\EntityReferenceSelection

Code

public function entityQueryAlter(SelectInterface $query) {
}