function HelpTopicTwig::__construct

Same name and namespace in other branches
  1. 8.9.x core/modules/help_topics/src/HelpTopicTwig.php \Drupal\help_topics\HelpTopicTwig::__construct()
  2. 10 core/modules/help/src/HelpTopicTwig.php \Drupal\help\HelpTopicTwig::__construct()
  3. 11.x core/modules/help/src/HelpTopicTwig.php \Drupal\help\HelpTopicTwig::__construct()

HelpTopicPluginBase constructor.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Template\TwigEnvironment $twig: The Twig environment.

File

core/modules/help_topics/src/HelpTopicTwig.php, line 43

Class

HelpTopicTwig
Represents a help topic plugin whose definition comes from a Twig file.

Namespace

Drupal\help_topics

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, TwigEnvironment $twig) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->twig = $twig;
}

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