5 * Provides test hook implementations for taxonomy tests.
8 use Drupal\Core\Database\Query\AlterableInterface;
11 * Implements hook_query_alter().
13 function taxonomy_test_query_alter(AlterableInterface $query) {
14 $value = \Drupal::state()->get(__FUNCTION__);
16 \Drupal::state()->set(__FUNCTION__, ++$value);
21 * Implements hook_query_TAG_alter().
23 function taxonomy_test_query_term_access_alter(AlterableInterface $query) {
24 $value = \Drupal::state()->get(__FUNCTION__);
26 \Drupal::state()->set(__FUNCTION__, ++$value);
31 * Implements hook_query_TAG_alter().
33 function taxonomy_test_query_taxonomy_term_access_alter(AlterableInterface $query) {
34 $value = \Drupal::state()->get(__FUNCTION__);
36 \Drupal::state()->set(__FUNCTION__, ++$value);