Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / web / core / modules / locale / tests / modules / locale_test_translate / locale_test_translate.module
1 <?php
2
3 /**
4  * @file
5  * Simulates a custom module with a local po file.
6  */
7
8 use Drupal\Core\Extension\Extension;
9
10 /**
11  * Implements hook_system_info_alter().
12  *
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.
16  */
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;
21   }
22 }