class HookAttributeNamedArgumentsHook
Test Hook attribute named arguments.
Hierarchy
- class \Drupal\hook_collector_hook_attribute\Hook\HookAttributeNamedArgumentsHook
Expanded class hierarchy of HookAttributeNamedArgumentsHook
File
-
core/
modules/ system/ tests/ modules/ hook_collector_hook_attribute/ src/ Hook/ HookAttributeNamedArgumentsHook.php, line 12
Namespace
Drupal\hook_collector_hook_attribute\HookView source
class HookAttributeNamedArgumentsHook {
/**
* Implements hook_cache_flush().
*/
public function flush() : void {
// Set a global value we can check in test code.
$GLOBALS['hook_named_arguments'] = 'hook_named_arguments';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
HookAttributeNamedArgumentsHook::flush | public | function | Implements hook_cache_flush(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.