5 * Simulates a custom module with a local po file.
8 use Drupal\Core\Extension\Extension;
11 * Implements hook_system_info_alter().
13 * By default this modules is hidden but once enabled it behaves like a normal
14 * (not hidden) module. This hook implementation changes the .info.yml data by
15 * setting the hidden status to FALSE.
17 function locale_test_translate_system_info_alter(&$info, Extension $file, $type) {
18 if ($file->getName() == 'locale_test_translate') {
19 // Don't hide the module.
20 $info['hidden'] = FALSE;