function update_script_test_system_info_alter
Same name in other branches
- 9 core/modules/system/tests/modules/update_script_test/update_script_test.module \update_script_test_system_info_alter()
- 8.9.x core/modules/system/tests/modules/update_script_test/update_script_test.module \update_script_test_system_info_alter()
- 11.x core/modules/system/tests/modules/update_script_test/update_script_test.module \update_script_test_system_info_alter()
Implements hook_system_info_alter().
File
-
core/
modules/ system/ tests/ modules/ update_script_test/ update_script_test.module, line 25
Code
function update_script_test_system_info_alter(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.