function HelpTwigExtension::__construct

Same name in other branches
  1. 9 core/modules/help_topics/src/HelpTwigExtension.php \Drupal\help_topics\HelpTwigExtension::__construct()
  2. 10 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\help

Code

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.