module_test.module
File
-
core/
modules/ system/ tests/ modules/ module_test/ module_test.module
View source
<?php
/**
* @file
* Test module.
*/
declare (strict_types=1);
/**
* Implements hook_hook_info().
*/
function module_test_hook_info() : array {
$hooks['test_hook'] = [
'group' => 'file',
];
return $hooks;
}
/**
* Load function used by module_test_hook_dynamic_loading_invoke_all_during_load().
*
* @see module_test_menu()
*/
function module_test_load($param) {
$result = \Drupal::moduleHandler()->invokeAll('test_hook');
return $result[$param];
}
Functions
| Title | Deprecated | Summary |
|---|---|---|
| module_test_hook_info | Implements hook_hook_info(). | |
| module_test_load | Load function used by module_test_hook_dynamic_loading_invoke_all_during_load(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.