function ConfigTestHooks::entityQueryTagConfigQueryTestConfigEntityQueryAlterHookTestAlter

Implements hook_entity_query_tag__ENTITY_TYPE__TAG_alter().

Entity type is 'config_query_test' and tag is 'config_entity_query_alter_hook_test'.

Attributes

#[Hook('entity_query_tag__config_query_test__config_entity_query_alter_hook_test_alter')]

See also

Drupal\KernelTests\Core\Entity\ConfigEntityQueryTest::testAlterHook

File

core/modules/config/tests/config_test/src/Hook/ConfigTestHooks.php, line 66

Class

ConfigTestHooks
Hook implementations for config_test.

Namespace

Drupal\config_test\Hook

Code

public function entityQueryTagConfigQueryTestConfigEntityQueryAlterHookTestAlter(QueryInterface $query) : void {
  $query->condition('id', '7', '<>');
}

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