function system_query_entity_reference_alter
Same name in other branches
- 9 core/modules/system/system.module \system_query_entity_reference_alter()
- 8.9.x core/modules/system/system.module \system_query_entity_reference_alter()
Implements hook_query_TAG_alter() for entity reference selection handlers.
File
-
core/
modules/ system/ system.module, line 1190
Code
function system_query_entity_reference_alter(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.