function 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;
}