Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SystemHooks.php

function SystemHooks::queryEntityReferenceAlter

Implements hook_query_TAG_alter() for entity reference selection handlers.

File

core/modules/system/src/Hook/SystemHooks.php, line 376

Class

SystemHooks
Hook implementations for system.

Namespace

Drupal\system\Hook

Code

public function queryEntityReferenceAlter(AlterableInterface $query) : void {
    $handler = $query->getMetadata('entity_reference_selection_handler');
    $handler->entityQueryAlter($query);
}
RSS feed
Powered by Drupal