public function TemplateTagPlugin::__construct in Extensible BBCode 8.3
Same name and namespace in other branches
- 4.0.x 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, $plugin_id, $plugin_definition, Twig_Environment $twig, $template = NULL) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->twig = $twig;
$this->template = $template;
}