function XyzMissingTargetAlter::targetASupertypeAlterForBSubtypeAlter

Same name and namespace in other branches
  1. main core/modules/system/tests/modules/HookOrder/xyz_hook_order_test/src/Hook/XyzMissingTargetAlter.php \Drupal\xyz_hook_order_test\Hook\XyzMissingTargetAlter::targetASupertypeAlterForBSubtypeAlter()

Hook order attributes where the target method implements a different hook.

This scenario is special for alter hooks, when the alter types for both hooks are passed to ->alter().

Attributes

#[ReorderHook('test_b_subtype_alter', AMissingTargetAlter::class, 'testASupertypeAlterReorderedFirstForBSubtypeByXyz', Order::First)] #[RemoveHook('test_b_subtype_alter', AMissingTargetAlter::class, 'testASupertypeAlterRemovedForBSubtypeByXyz')]

File

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

Class

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

Namespace

Drupal\xyz_hook_order_test\Hook

Code

public function targetASupertypeAlterForBSubtypeAlter() : void {
}

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