You are here

class HelpMessageHelper in Acquia Lift Connector 8.3

Same name and namespace in other branches
  1. 8.4 src/Service/Helper/HelpMessageHelper.php \Drupal\acquia_lift\Service\Helper\HelpMessageHelper
  2. 8 src/Service/Helper/HelpMessageHelper.php \Drupal\acquia_lift\Service\Helper\HelpMessageHelper

Hierarchy

Expanded class hierarchy of HelpMessageHelper

1 file declares its use of HelpMessageHelper
HelpMessageHelperTest.php in tests/src/Unit/Service/Helper/HelpMessageHelperTest.php
1 string reference to 'HelpMessageHelper'
acquia_lift.services.yml in ./acquia_lift.services.yml
acquia_lift.services.yml
1 service uses HelpMessageHelper
acquia_lift.service.helper.help_message_helper in ./acquia_lift.services.yml
Drupal\acquia_lift\Service\Helper\HelpMessageHelper

File

src/Service/Helper/HelpMessageHelper.php, line 7

Namespace

Drupal\acquia_lift\Service\Helper
View source
class HelpMessageHelper {
  use StringTranslationTrait;

  /**
   * Get help message (by route name).
   *
   * @param string $route_name
   *   Route name.
   *
   * @return \Drupal\Core\StringTranslation\TranslatableMarkup
   *   The help message.
   */
  public function getMessage($route_name) {
    switch ($route_name) {
      case 'help.page.acquia_lift':
      case 'acquia_lift.admin_settings_form':
        return $this
          ->t('You can find more info in <a href="https://docs.acquia.com/lift" target="_blank">Documentation</a>.');
    }
    return;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
HelpMessageHelper::getMessage public function Get help message (by route name).
StringTranslationTrait::$stringTranslation protected property The string translation service. 1
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.