function UpdateScriptTestHooks::cacheFlush
Implements hook_cache_flush().
This sets a message to confirm that all caches are cleared whenever update.php completes.
See also
UpdateScriptFunctionalTest::testRequirements()
File
-
core/
modules/ system/ tests/ modules/ update_script_test/ src/ Hook/ UpdateScriptTestHooks.php, line 23
Class
- UpdateScriptTestHooks
- Hook implementations for update_script_test.
Namespace
Drupal\update_script_test\HookCode
public function cacheFlush() {
\Drupal::messenger()->addStatus(t('hook_cache_flush() invoked for update_script_test.module.'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.