function TestHookAfterClassMethod::hookAfterClassMethod

Same name in this branch
  1. 11.x core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookAfterClassMethod.php \Drupal\aaa_hook_collector_test\Hook\TestHookAfterClassMethod::hookAfterClassMethod()

This pair tests OrderAfter with a passed class and method.

File

core/modules/system/tests/modules/HookCollector/bbb_hook_collector_test/src/Hook/TestHookAfterClassMethod.php, line 21

Class

TestHookAfterClassMethod
This class contains hook implementations.

Namespace

Drupal\bbb_hook_collector_test\Hook

Code

public static function hookAfterClassMethod() : string {
    // This should be run first since another hook overrides the natural order.
    return __METHOD__;
}

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