Version 1
[yaffs-website] / web / core / modules / locale / tests / modules / locale_test_translate / locale_test_translate.module
diff --git a/web/core/modules/locale/tests/modules/locale_test_translate/locale_test_translate.module b/web/core/modules/locale/tests/modules/locale_test_translate/locale_test_translate.module
new file mode 100644 (file)
index 0000000..e55d4dc
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+
+/**
+ * @file
+ * Simulates a custom module with a local po file.
+ */
+
+use Drupal\Core\Extension\Extension;
+
+/**
+ * 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.
+ */
+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;
+  }
+}