function module_test_load in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/module_test/module_test.module \module_test_load()
Load function used by module_test_hook_dynamic_loading_invoke_all_during_load().
See also
module_test_menu()
File
- core/
modules/ system/ tests/ modules/ module_test/ module_test.module, line 74 - Test module.
Code
function module_test_load($param) {
$result = \Drupal::moduleHandler()
->invokeAll('test_hook');
return $result[$param];
}