function UpdateScriptTestHooks::systemInfoAlter
Implements hook_system_info_alter().
File
-
core/
modules/ system/ tests/ modules/ update_script_test/ src/ Hook/ UpdateScriptTestHooks.php, line 31
Class
- UpdateScriptTestHooks
- Hook implementations for update_script_test.
Namespace
Drupal\update_script_test\HookCode
public function systemInfoAlter(array &$info, Extension $file, $type) {
$new_info = \Drupal::state()->get('update_script_test.system_info_alter');
if ($new_info) {
if ($file->getName() == 'update_script_test') {
$info = $new_info + $info;
}
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.