function AHooks::testHookFirst
Implements hook_test_hook().
This implementation changes its order to be first.
Attributes
#[Hook('test_hook', order: Order::First)]
File
-
core/
modules/ system/ tests/ modules/ HookOrder/ aaa_hook_order_test/ src/ Hook/ AHooks.php, line 48
Class
- AHooks
- Provides hook implementations for testing the execution order of hooks.
Namespace
Drupal\aaa_hook_order_test\HookCode
public function testHookFirst() : string {
return __METHOD__;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.