function XyzMissingTargetAlter::targetBAlter
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_alter', BMissingTargetAlter::class, 'testBAlterReorderedFirstByXyz', Order::First)]
#[RemoveHook('test_b_alter', BMissingTargetAlter::class, 'testBAlterRemovedByXyz')]
File
-
core/
modules/ system/ tests/ modules/ HookOrder/ xyz_hook_order_test/ src/ Hook/ XyzMissingTargetAlter.php, line 39
Class
- XyzMissingTargetAlter
- This class contains attributes to reorder or remove alter implementations.
Namespace
Drupal\xyz_hook_order_test\HookCode
public function targetBAlter() : void {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.