You are here

function entityreference_query_entityreference_alter in Entity reference 8

Same name and namespace in other branches
  1. 7 entityreference.module \entityreference_query_entityreference_alter()

Implements hook_query_TAG_alter().

File

./entityreference.module, line 346
Provides a field that can reference other entities.

Code

function entityreference_query_entityreference_alter(AlterableInterface $query) {
  $handler = $query
    ->getMetadata('entityreference_selection_handler');
  $handler
    ->entityFieldQueryAlter($query);
}