function DeprecatedModuleTestHooks::systemInfoAlter
Implements hook_system_info_alter().
File
-
core/
modules/ system/ tests/ modules/ deprecated_module_test/ src/ Hook/ DeprecatedModuleTestHooks.php, line 18
Class
- DeprecatedModuleTestHooks
- Hook implementations for deprecated_module_test.
Namespace
Drupal\deprecated_module_test\HookCode
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';
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.