You are here

public function ModuleTestController::hookDynamicLoadingInvoke in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/module_test/src/Controller/ModuleTestController.php \Drupal\module_test\Controller\ModuleTestController::hookDynamicLoadingInvoke()
  2. 9 core/modules/system/tests/modules/module_test/src/Controller/ModuleTestController.php \Drupal\module_test\Controller\ModuleTestController::hookDynamicLoadingInvoke()

Returns dynamically invoked hook results for the 'module_test' module.

Return value

array Renderable array.

1 string reference to 'ModuleTestController::hookDynamicLoadingInvoke'
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 18

Class

ModuleTestController
Controller routines for module_test routes.

Namespace

Drupal\module_test\Controller

Code

public function hookDynamicLoadingInvoke() {
  $result = \Drupal::moduleHandler()
    ->invoke('module_test', 'test_hook');
  return $result['module_test'];
}