public function TemplateTagPlugin::__construct in Extensible BBCode 4.0.x
Same name and namespace in other branches
- 8.3 src/Plugin/TemplateTagPlugin.php \Drupal\xbbcode\Plugin\TemplateTagPlugin::__construct()
TemplateTagPlugin constructor.
Parameters
array $configuration: Plugin configuration.
string $plugin_id: Plugin ID.
mixed $plugin_definition: Plugin definition.
\Twig\Environment $twig: Twig environment service.
string|null $template: The template.
Overrides TagPluginBase::__construct
1 call to TemplateTagPlugin::__construct()
- EntityTagPlugin::__construct in src/
Plugin/ XBBCode/ EntityTagPlugin.php - Constructs a new custom tag plugin.
1 method overrides TemplateTagPlugin::__construct()
- EntityTagPlugin::__construct in src/
Plugin/ XBBCode/ EntityTagPlugin.php - Constructs a new custom tag plugin.
File
- src/
Plugin/ TemplateTagPlugin.php, line 55
Class
- TemplateTagPlugin
- This is a tag that delegates processing to a Twig template.
Namespace
Drupal\xbbcode\PluginCode
public function __construct(array $configuration, string $plugin_id, $plugin_definition, TwigEnvironment $twig, $template = NULL) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->twig = $twig;
$this->template = $template;
}