function XyzMissingTargetHooks::targetBHook
Hook order attributes that target a hook with possibly no implementations.
(The target hook has no implementations if module B is disabled.)
Attributes
#[ReorderHook('test_b_hook', BMissingTargetHooks::class, 'testBHookReorderedFirstByXyz', Order::First)]
#[RemoveHook('test_b_hook', BMissingTargetHooks::class, 'testBHookRemovedByXyz')]
File
-
core/
modules/ system/ tests/ modules/ HookOrder/ xyz_hook_order_test/ src/ Hook/ XyzMissingTargetHooks.php, line 42
Class
- XyzMissingTargetHooks
- This class contains attributes to reorder or remove hook implementations.
Namespace
Drupal\xyz_hook_order_test\HookCode
public function targetBHook() : void {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.