function ConfigTestHooks::cacheFlush

Implements hook_cache_flush().

Attributes

#[Hook('cache_flush')]

File

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

Class

ConfigTestHooks
Hook implementations for config_test.

Namespace

Drupal\config_test\Hook

Code

public function cacheFlush() : void {
  // Set a global value we can check in test code.
  $GLOBALS['hook_cache_flush'] = 'config_test_cache_flush';
}

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