class TestHookReorderHookFirst
This class contains hook implementations.
By default, these will be called in module order, which is predictable due to the alphabetical module names. Some of the implementations are reordered using order attributes.
Hierarchy
- class \Drupal\aaa_hook_collector_test\Hook\TestHookReorderHookFirst
Expanded class hierarchy of TestHookReorderHookFirst
File
-
core/
modules/ system/ tests/ modules/ HookCollector/ aaa_hook_collector_test/ src/ Hook/ TestHookReorderHookFirst.php, line 19
Namespace
Drupal\aaa_hook_collector_test\HookView source
class TestHookReorderHookFirst {
/**
* This pair tests ReorderHook.
*/
public function customHookOverride() : string {
// This normally would run first.
// We override that order in hook_order_second_alphabetically.
// We override, that order here with ReorderHook.
return __METHOD__;
}
}
Members
| Title Sort descending | Modifiers | Object type | Summary |
|---|---|---|---|
| TestHookReorderHookFirst::customHookOverride | public | function | This pair tests ReorderHook. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.