function hook_collector_on_behalf_procedural_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_procedural_cache_flush()

This implements a hook but should not be picked up.

This attribute should stop all procedural hooks after. We implement on behalf of other modules so we can pick them up.

Attributes

#[ProceduralHookScanStop]

File

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

Code

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

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