function field_test_entity_query_alter
Same name in other branches
- 7.x modules/field/tests/field_test.module \field_test_entity_query_alter()
- 10 core/modules/field/tests/modules/field_test/field_test.module \field_test_entity_query_alter()
Implements hook_entity_query_alter().
See also
Drupal\KernelTests\Core\Entity\EntityQueryTest::testAlterHook
File
-
core/
modules/ field/ tests/ modules/ field_test/ field_test.module, line 243
Code
function field_test_entity_query_alter(QueryInterface $query) : void {
if ($query->hasTag('entity_query_alter_hook_test')) {
$query->condition('id', '5', '<>');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.