function SystemHooks::queryEntityReferenceAlter
Implements hook_query_TAG_alter() for entity reference selection handlers.
File
-
core/
modules/ system/ src/ Hook/ SystemHooks.php, line 387
Class
- SystemHooks
- Hook implementations for system.
Namespace
Drupal\system\HookCode
public function queryEntityReferenceAlter(AlterableInterface $query) {
$handler = $query->getMetadata('entity_reference_selection_handler');
$handler->entityQueryAlter($query);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.