public function HelpTopicTwig::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/help_topics/src/HelpTopicTwig.php \Drupal\help_topics\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.
Overrides PluginBase::__construct
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_topicsCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, TwigEnvironment $twig) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->twig = $twig;
}