function module_test_hook_dynamic_loading_invoke in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/modules/module_test/module_test.module \module_test_hook_dynamic_loading_invoke()
Page callback for 'hook dynamic loading' test.
If the hook is dynamically loaded correctly, the menu callback should return 'success!'.
1 call to module_test_hook_dynamic_loading_invoke()
- ModuleTestController::hookDynamicLoadingInvoke in core/
modules/ system/ tests/ modules/ module_test/ src/ Controller/ ModuleTestController.php - @todo Remove module_test_hook_dynamic_loading_invoke().
File
- core/
modules/ system/ tests/ modules/ module_test/ module_test.module, line 72
Code
function module_test_hook_dynamic_loading_invoke() {
$result = \Drupal::moduleHandler()
->invoke('module_test', 'test_hook');
return $result['module_test'];
}