function XyzMissingTargetAlter::targetABAlter

Hook order attributes that target possibly non-existing alter methods.

(The targeted methods don't exist if module B is disabled.)

Attributes

#[ReorderHook('test_ab_alter', BMissingTargetAlter::class, 'testABAlterReorderedFirstByXyz', Order::First)] #[RemoveHook('test_ab_alter', BMissingTargetAlter::class, 'testABAlterRemovedByXyz')]

File

core/modules/system/tests/modules/HookOrder/xyz_hook_order_test/src/Hook/XyzMissingTargetAlter.php, line 30

Class

XyzMissingTargetAlter
This class contains attributes to reorder or remove alter implementations.

Namespace

Drupal\xyz_hook_order_test\Hook

Code

public function targetABAlter() : void {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.