function HookLoaderTest::testHookOrder
Test hook implementation order.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Hook/ HookLoaderTest.php, line 31
Class
- HookLoaderTest
- Test hook loading.
Namespace
Drupal\KernelTests\Core\HookCode
public function testHookOrder() : void {
$this->assertSameCallList([
CircularDependencyHooks::class . '::testHook',
], \Drupal::moduleHandler()->invokeAll('test_hook'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.