function HelpTwigExtension::__construct
Same name in other branches
- 9 core/modules/help_topics/src/HelpTwigExtension.php \Drupal\help_topics\HelpTwigExtension::__construct()
- 11.x core/modules/help/src/HelpTwigExtension.php \Drupal\help\HelpTwigExtension::__construct()
Constructs a \Drupal\help\HelpTwigExtension.
Parameters
\Drupal\Core\Access\AccessManagerInterface $accessManager: The access manager.
\Drupal\help\HelpTopicPluginManagerInterface $pluginManager: The help topic plugin manager service.
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.
File
-
core/
modules/ help/ src/ HelpTwigExtension.php, line 37
Class
- HelpTwigExtension
- Defines and registers Drupal Twig extensions for rendering help topics.
Namespace
Drupal\helpCode
public function __construct(AccessManagerInterface $accessManager, HelpTopicPluginManagerInterface $pluginManager, TranslationInterface $string_translation) {
$this->stringTranslation = $string_translation;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.