function locale_test_development_release_system_info_alter
Same name in other branches
- 9 core/modules/locale/tests/modules/locale_test_development_release/locale_test_development_release.module \locale_test_development_release_system_info_alter()
- 10 core/modules/locale/tests/modules/locale_test_development_release/locale_test_development_release.module \locale_test_development_release_system_info_alter()
- 11.x core/modules/locale/tests/modules/locale_test_development_release/locale_test_development_release.module \locale_test_development_release_system_info_alter()
Implements hook_system_info_alter().
Change the core version number to a development one for testing. 8.0.0-alpha102-dev is the simulated version.
File
-
core/
modules/ locale/ tests/ modules/ locale_test_development_release/ locale_test_development_release.module, line 16
Code
function locale_test_development_release_system_info_alter(&$info, Extension $file, $type) {
if (isset($info['package']) && $info['package'] == 'Core') {
$info['version'] = '8.0.0-alpha102-dev';
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.