class DeprecatedModuleTestHooks
Hook implementations for deprecated_module_test.
Hierarchy
- class \Drupal\deprecated_module_test\Hook\DeprecatedModuleTestHooks
Expanded class hierarchy of DeprecatedModuleTestHooks
File
-
core/
modules/ system/ tests/ modules/ deprecated_module_test/ src/ Hook/ DeprecatedModuleTestHooks.php, line 13
Namespace
Drupal\deprecated_module_test\HookView source
class DeprecatedModuleTestHooks {
/**
* Implements hook_system_info_alter().
*/
public function systemInfoAlter(array &$info, Extension $file, $type) : void {
// Make the 'deprecated_module_contrib' look like it isn't part of core.
if ($type === 'module' && $info['name'] === 'Deprecated module contrib') {
$file->origin = 'sites/all';
}
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
DeprecatedModuleTestHooks::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.