class HelpMessageHelper in Acquia Lift Connector 8.4
Same name and namespace in other branches
- 8 src/Service/Helper/HelpMessageHelper.php \Drupal\acquia_lift\Service\Helper\HelpMessageHelper
- 8.3 src/Service/Helper/HelpMessageHelper.php \Drupal\acquia_lift\Service\Helper\HelpMessageHelper
Hierarchy
- class \Drupal\acquia_lift\Service\Helper\HelpMessageHelper uses StringTranslationTrait
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'
1 service uses HelpMessageHelper
File
- src/
Service/ Helper/ HelpMessageHelper.php, line 7
Namespace
Drupal\acquia_lift\Service\HelperView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HelpMessageHelper:: |
public | function | Get help message (by route name). | |
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |