function KernelTestHooksTest::hookTestHook
Same name and namespace in other branches
- 11.x core/tests/Drupal/KernelTests/Core/Hook/KernelTestHooksTest.php \Drupal\KernelTests\Core\Hook\KernelTestHooksTest::hookTestHook()
Implements hook_test_hook().
Attributes
#[Hook('test_hook')]
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Hook/ KernelTestHooksTest.php, line 41
Class
- KernelTestHooksTest
- Tests that hook implementations in Kernel test classes are executed.
Namespace
Drupal\KernelTests\Core\HookCode
public function hookTestHook() : string {
return __METHOD__;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.