function TestHookOrderExtraTypes::customHookExtraTypes

Same name in this branch
  1. 11.x core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookOrderExtraTypes.php \Drupal\bbb_hook_collector_test\Hook\TestHookOrderExtraTypes::customHookExtraTypes()

This pair tests OrderAfter with ExtraTypes.

Attributes

#[Hook('custom_hook_extra_types1_alter', order: new OrderAfter(modules: [ 'bbb_hook_collector_test', ]))]

File

core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookOrderExtraTypes.php, line 22

Class

TestHookOrderExtraTypes
This class contains hook implementations.

Namespace

Drupal\aaa_hook_collector_test\Hook

Code

public function customHookExtraTypes(array &$calls) : void {
  // This should be run after.
  $calls[] = __METHOD__;
}

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