function locale_test_translate_system_info_alter

Same name in other branches
  1. 9 core/modules/locale/tests/modules/locale_test_translate/locale_test_translate.module \locale_test_translate_system_info_alter()
  2. 8.9.x core/modules/locale/tests/modules/locale_test_translate/locale_test_translate.module \locale_test_translate_system_info_alter()
  3. 11.x core/modules/locale/tests/modules/locale_test_translate/locale_test_translate.module \locale_test_translate_system_info_alter()

Implements hook_system_info_alter().

By default this modules is hidden but once enabled it behaves like a normal (not hidden) module. This hook implementation changes the .info.yml data by setting the hidden status to FALSE.

File

core/modules/locale/tests/modules/locale_test_translate/locale_test_translate.module, line 17

Code

function locale_test_translate_system_info_alter(&$info, Extension $file, $type) {
    if ($file->getName() == 'locale_test_translate') {
        // Don't hide the module.
        $info['hidden'] = FALSE;
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.