function FieldTestHooks::queryEfqMetadataTestAlter

Implements hook_query_TAG_alter() for tag 'efq_metadata_test'.

See also

\Drupal\system\Tests\Entity\EntityQueryTest::testMetaData()

File

core/modules/field/tests/modules/field_test/src/Hook/FieldTestHooks.php, line 85

Class

FieldTestHooks
Hook implementations for field_test.

Namespace

Drupal\field_test\Hook

Code

public function queryEfqMetadataTestAlter(&$query) {
    field_test_memorize('field_test_query_efq_metadata_test_alter', $query->getMetadata('foo'));
}

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