class HelpTwigExtension

Same name in this branch
  1. 11.x core/modules/help/src/HelpTwigExtension.php \Drupal\help\HelpTwigExtension
Same name and namespace in other branches
  1. 9 core/modules/help_topics/src/HelpTwigExtension.php \Drupal\help_topics\HelpTwigExtension
  2. 10 core/modules/help_topics/src/HelpTwigExtension.php \Drupal\help_topics\HelpTwigExtension
  3. 10 core/modules/help/src/HelpTwigExtension.php \Drupal\help\HelpTwigExtension

Defines and registers Drupal Twig extensions for rendering help topics.

@internal Help Topics is currently experimental and should only be leveraged by experimental modules and development releases of contributed modules. See https://www.drupal.org/core/experimental for more information.

Hierarchy

Expanded class hierarchy of HelpTwigExtension

File

core/modules/help_topics/src/HelpTwigExtension.php, line 15

Namespace

Drupal\help_topics
View source
class HelpTwigExtension extends CoreHelpTwigExtension {

}

Members

Title Sort descending Modifiers Object type Summary Overrides
HelpTwigExtension::getFunctions public function
HelpTwigExtension::getRouteLink public function Returns a link or plain text, given text, route name, and parameters.
HelpTwigExtension::getTopicLink public function Returns a link to a help topic, or the title of the topic.
HelpTwigExtension::__construct public function Constructs a \Drupal\help\HelpTwigExtension.
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.