function XyzMissingTargetHooks::targetABHook
Hook order attributes that target possibly non-existing implementations.
(The targeted methods don't exist if module B is disabled.)
Attributes
#[ReorderHook('test_ab_hook', BMissingTargetHooks::class, 'testABHookReorderedFirstByXyz', Order::First)]
#[RemoveHook('test_ab_hook', BMissingTargetHooks::class, 'testABHookRemovedByXyz')]
File
-
core/
modules/ system/ tests/ modules/ HookOrder/ xyz_hook_order_test/ src/ Hook/ XyzMissingTargetHooks.php, line 33
Class
- XyzMissingTargetHooks
- This class contains attributes to reorder or remove hook implementations.
Namespace
Drupal\xyz_hook_order_test\HookCode
public function targetABHook() : void {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.