system_query_entity_reference_alter

system_query_entity_reference_alter(AlterableInterface $query)

Implements hook_query_TAG_alter() for entity reference selection handlers.

File

core/modules/system/system.module, line 1452
Configuration system that lets administrators modify the workings of the site.

Code

function system_query_entity_reference_alter(AlterableInterface $query) {
  $handler = $query->getMetadata('entity_reference_selection_handler');
  $handler->entityQueryAlter($query);
}
doc_Drupal
2016-10-29 09:45:57
Comments
Leave a Comment

Please login to continue.