function ModuleTestController::hookDynamicLoadingInvokeAll
Same name in other branches
- 9 core/modules/system/tests/modules/module_test/src/Controller/ModuleTestController.php \Drupal\module_test\Controller\ModuleTestController::hookDynamicLoadingInvokeAll()
- 10 core/modules/system/tests/modules/module_test/src/Controller/ModuleTestController.php \Drupal\module_test\Controller\ModuleTestController::hookDynamicLoadingInvokeAll()
- 11.x core/modules/system/tests/modules/module_test/src/Controller/ModuleTestController.php \Drupal\module_test\Controller\ModuleTestController::hookDynamicLoadingInvokeAll()
Returns dynamically invoked hook results for all modules.
Return value
array Renderable array.
1 string reference to 'ModuleTestController::hookDynamicLoadingInvokeAll'
- module_test.routing.yml in core/
modules/ system/ tests/ modules/ module_test/ module_test.routing.yml - core/modules/system/tests/modules/module_test/module_test.routing.yml
File
-
core/
modules/ system/ tests/ modules/ module_test/ src/ Controller/ ModuleTestController.php, line 29
Class
- ModuleTestController
- Controller routines for module_test routes.
Namespace
Drupal\module_test\ControllerCode
public function hookDynamicLoadingInvokeAll() {
$result = \Drupal::moduleHandler()->invokeAll('test_hook');
return $result['module_test'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.