You are here

public function HelpTwigExtension::__construct in Drupal 9

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