function update_script_test_cache_flush

Same name in other branches
  1. 9 core/modules/system/tests/modules/update_script_test/update_script_test.module \update_script_test_cache_flush()
  2. 8.9.x core/modules/system/tests/modules/update_script_test/update_script_test.module \update_script_test_cache_flush()
  3. 11.x 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

Code

function update_script_test_cache_flush() {
    \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.