You are here

public function SelectionPluginBase::entityQueryAlter in Drupal 9

Same name and namespace in other branches
  1. 8 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 87

Class

SelectionPluginBase
Provides a base class for configurable selection handlers.

Namespace

Drupal\Core\Entity\EntityReferenceSelection

Code

public function entityQueryAlter(SelectInterface $query) {
}