class ExperimentalModuleRequirementsTestHooks

Hook implementations for experimental_module_requirements_test.

Hierarchy

Expanded class hierarchy of ExperimentalModuleRequirementsTestHooks

File

core/modules/system/tests/modules/experimental_module_requirements_test/src/Hook/ExperimentalModuleRequirementsTestHooks.php, line 13

Namespace

Drupal\experimental_module_requirements_test\Hook
View source
class ExperimentalModuleRequirementsTestHooks {
  use StringTranslationTrait;
  
  /**
   * Implements hook_help().
   */
  public function help($route_name) : ?\Stringable {
    switch ($route_name) {
      case 'help.page.experimental_module_requirements_test':
        // Make the help text conform to core standards.
        return $this->t('The Experimental Requirements Test module is not done yet. It may eat your data, but you can read the <a href=":url">online documentation for the Experimental Requirements Test module</a>.', [
          ':url' => 'http://www.example.com',
        ]);
    }
    return NULL;
  }

}

Members

Title Sort descending Modifiers Object type Summary Overrides
ExperimentalModuleRequirementsTestHooks::help public function Implements hook_help().
StringTranslationTrait::$stringTranslation protected property The string translation service. 3
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language. 1

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