class TestHookAfterClassMethod
Same name in this branch
- 11.x core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookAfterClassMethod.php \Drupal\aaa_hook_collector_test\Hook\TestHookAfterClassMethod
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\bbb_hook_collector_test\Hook\TestHookAfterClassMethod
Expanded class hierarchy of TestHookAfterClassMethod
1 file declares its use of TestHookAfterClassMethod
- TestHookAfterClassMethod.php in core/
modules/ system/ tests/ modules/ HookCollector/ aaa_hook_collector_test/ src/ Hook/ TestHookAfterClassMethod.php
File
-
core/
modules/ system/ tests/ modules/ HookCollector/ bbb_hook_collector_test/ src/ Hook/ TestHookAfterClassMethod.php, line 16
Namespace
Drupal\bbb_hook_collector_test\HookView source
class TestHookAfterClassMethod {
/**
* This pair tests OrderAfter with a passed class and method.
*/
public static function hookAfterClassMethod() : string {
// This should be run first since another hook overrides the natural order.
return __METHOD__;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TestHookAfterClassMethod::hookAfterClassMethod | public static | function | This pair tests OrderAfter with a passed class and method. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.