class TestHookAfter

Same name in this branch
  1. main core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookAfter.php \Drupal\aaa_hook_collector_test\Hook\TestHookAfter
Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookAfter.php \Drupal\aaa_hook_collector_test\Hook\TestHookAfter
  2. 11.x core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookAfter.php \Drupal\bbb_hook_collector_test\Hook\TestHookAfter

This class contains hook implementations.

By default, these will be called in module order, which is predictable due to the alphabetical module names. Some of the implementations are reordered using order attributes.

Hierarchy

Expanded class hierarchy of TestHookAfter

File

core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookAfter.php, line 16

Namespace

Drupal\bbb_hook_collector_test\Hook
View source
class TestHookAfter {
  
  /**
   * This pair tests OrderAfter.
   */
  public function hookAfter() : string {
    // This should be run before.
    return __METHOD__;
  }

}

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