function ACrossHookReorderAlter::baseAlterLastAlsoIfSubtype

Implements hook_test_cross_hook_reorder_base_alter().

This method implements the base alter hook, and has an Order::Last rule. In addition, it is targeted by a #[ReorderHook] for the subtype alter hook.

Attributes

#[ReorderHook('test_cross_hook_reorder_subtype_alter', self::class, 'baseAlterLastAlsoIfSubtype', Order::Last)] #[Hook('test_cross_hook_reorder_base_alter', order: Order::Last)]

See also

self::subtypeAlterLast()

File

core/modules/system/tests/modules/HookOrder/aaa_hook_order_test/src/Hook/ACrossHookReorderAlter.php, line 34

Class

ACrossHookReorderAlter
Contains alter hook implementations.

Namespace

Drupal\aaa_hook_order_test\Hook

Code

public function baseAlterLastAlsoIfSubtype(array &$calls) : void {
  $calls[] = __METHOD__;
}

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