Allows the selection to alter the SelectQuery generated by EntityFieldQuery.
Parameters
\Drupal\Core\Database\Query\SelectInterface $query:
A Select Query object.
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);