function AHooks::testBothParametersHook
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/HookOrder/aaa_hook_order_test/src/Hook/AHooks.php \Drupal\aaa_hook_order_test\Hook\AHooks::testBothParametersHook()
Implements test_both_parameters_hook().
This implementation changes its order to be after the hooks in module bbb_hook_order_test and \Drupal\ccc_hook_order_test\Hook\CHooks::testBothParametersHook().)
Attributes
#[Hook('test_both_parameters_hook', order: new OrderAfter(modules: [
'bbb_hook_order_test',
], classesAndMethods: [
[
CHooks::class,
'testBothParametersHook',
],
]))]
File
-
core/
modules/ system/ tests/ modules/ HookOrder/ aaa_hook_order_test/ src/ Hook/ AHooks.php, line 81
Class
- AHooks
- Provides hook implementations for testing the execution order of hooks.
Namespace
Drupal\aaa_hook_order_test\HookCode
public function testBothParametersHook() : string {
return __METHOD__;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.