function hook_collector_on_behalf_cache_flush

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/hook_collector_skip_procedural_attribute/hook_collector_skip_procedural_attribute.module \hook_collector_on_behalf_cache_flush()

This implements a hook but should not be picked up.

The attribute above should prevent this from being found.

File

core/modules/system/tests/modules/hook_collector_skip_procedural_attribute/hook_collector_skip_procedural_attribute.module, line 39

Code

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

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