class LocaleTestAdditionalHooks

Same name and namespace in other branches
  1. 11.x core/modules/locale/tests/modules/locale_test_additional/src/Hook/LocaleTestAdditionalHooks.php \Drupal\locale_test_additional\Hook\LocaleTestAdditionalHooks

Hook implementations for locale_test_extra.

Hierarchy

Expanded class hierarchy of LocaleTestAdditionalHooks

File

core/modules/locale/tests/modules/locale_test_additional/src/Hook/LocaleTestAdditionalHooks.php, line 13

Namespace

Drupal\locale_test_additional\Hook
View source
class LocaleTestAdditionalHooks {
  
  /**
   * 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.
   */
  public function systemInfoAlter(&$info, Extension $file, $type) : void {
    if ($file->getName() == 'locale_test_additional') {
      // 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.