Same name and namespace in other branches
  1. 8.9.x core/modules/system/tests/modules/update_script_test/update_script_test.module \update_script_test_cache_flush()
  2. 9 core/modules/system/tests/modules/update_script_test/update_script_test.module \update_script_test_cache_flush()

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/update_script_test.module, line 18
This file provides testing functionality for update.php.

Code

function update_script_test_cache_flush() {
  \Drupal::messenger()
    ->addStatus(t('hook_cache_flush() invoked for update_script_test.module.'));
}