function LocaleTestDevelopmentReleaseHooks::systemInfoAlter

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/src/Hook/LocaleTestDevelopmentReleaseHooks.php, line 21

Class

LocaleTestDevelopmentReleaseHooks
Hook implementations for locale_test_development_release.

Namespace

Drupal\locale_test_development_release\Hook

Code

public function systemInfoAlter(&$info, Extension $file, $type) : void {
    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.