function hook_entity_query_tag__ENTITY_TYPE__TAG_alter

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Entity/entity.api.php \hook_entity_query_tag__ENTITY_TYPE__TAG_alter()
  2. main core/lib/Drupal/Core/Entity/entity.api.php \hook_entity_query_tag__ENTITY_TYPE__TAG_alter()

Alter an entity query for a specific entity type that has a specific tag.

Parameters

\Drupal\Core\Entity\Query\QueryInterface $query: The entity query.

See also

hook_entity_query_ENTITY_TYPE_alter()

hook_entity_query_tag__TAG_alter()

\Drupal\Core\Entity\Query\QueryInterface

Related topics

File

core/lib/Drupal/Core/Entity/entity.api.php, line 2364

Code

function hook_entity_query_tag__ENTITY_TYPE__TAG_alter(\Drupal\Core\Entity\Query\QueryInterface $query) : void {
  $query->condition('id', '1', '<>');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.