function HookAttributeNamedArgumentsHook::flush

Implements hook_cache_flush().

File

core/modules/system/tests/modules/hook_collector_hook_attribute/src/Hook/HookAttributeNamedArgumentsHook.php, line 18

Class

HookAttributeNamedArgumentsHook
Test Hook attribute named arguments.

Namespace

Drupal\hook_collector_hook_attribute\Hook

Code

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

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