class ModuleRequiredTestHooks
Hook implementations for module_required_test.
Hierarchy
- class \Drupal\module_required_test\Hook\ModuleRequiredTestHooks
Expanded class hierarchy of ModuleRequiredTestHooks
File
-
core/
modules/ system/ tests/ modules/ module_required_test/ src/ Hook/ ModuleRequiredTestHooks.php, line 13
Namespace
Drupal\module_required_test\HookView source
class ModuleRequiredTestHooks {
/**
* Implements hook_system_info_alter().
*
* Manipulate module dependencies to test dependency chains.
*/
public function systemInfoAlter(&$info, Extension $file, $type) : void {
if ($file->getName() == 'module_required_test' && \Drupal::state()->get('module_required_test.hook_system_info_alter')) {
$info['required'] = TRUE;
$info['explanation'] = 'Testing hook_system_info_alter()';
}
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ModuleRequiredTestHooks::systemInfoAlter | public | function | Implements hook_system_info_alter(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.