function TestHookFirst::hookFirst

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

This pair tests OrderFirst.

File

core/modules/system/tests/modules/HookCollector/aaa_hook_collector_test/src/Hook/TestHookFirst.php, line 21

Class

TestHookFirst
This class contains hook implementations.

Namespace

Drupal\aaa_hook_collector_test\Hook

Code

public function hookFirst() : string {
    // This should be run second, there is another hook reordering before this.
    return __METHOD__;
}

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