function hook_entity_query_tag__ENTITY_TYPE__TAG_alter

Same name in other branches
  1. 10 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

1 function implements hook_entity_query_tag__ENTITY_TYPE__TAG_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

config_test_entity_query_tag__config_query_test__config_entity_query_alter_hook_test_alter in core/modules/config/tests/config_test/config_test.module
Implements hook_entity_query_tag__ENTITY_TYPE__TAG_alter().

File

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

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.