function HelpTwigExtension::__construct

Same name in other branches
  1. 10 core/modules/help/src/HelpTwigExtension.php \Drupal\help\HelpTwigExtension::__construct()
  2. 11.x core/modules/help/src/HelpTwigExtension.php \Drupal\help\HelpTwigExtension::__construct()

Constructs a \Drupal\help_topics\HelpTwigExtension.

Parameters

\Drupal\Core\Access\AccessManagerInterface $access_manager: The access manager.

\Drupal\help_topics\HelpTopicPluginManagerInterface $plugin_manager: The help topic plugin manager service.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

File

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

Class

HelpTwigExtension
Defines and registers Drupal Twig extensions for rendering help topics.

Namespace

Drupal\help_topics

Code

public function __construct(AccessManagerInterface $access_manager, HelpTopicPluginManagerInterface $plugin_manager, TranslationInterface $string_translation) {
    $this->accessManager = $access_manager;
    $this->pluginManager = $plugin_manager;
    $this->stringTranslation = $string_translation;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.