protected function TemplateTagPlugin::getTemplate in Extensible BBCode 4.0.x
Same name and namespace in other branches
- 8.3 src/Plugin/TemplateTagPlugin.php \Drupal\xbbcode\Plugin\TemplateTagPlugin::getTemplate()
Get the tag template.
Return value
\Twig_TemplateWrapper The compiled template that should render this tag.
Throws
1 call to TemplateTagPlugin::getTemplate()
- EntityTagPlugin::getTemplate in src/Plugin/ XBBCode/ EntityTagPlugin.php 
- Get the tag template.
1 method overrides TemplateTagPlugin::getTemplate()
- EntityTagPlugin::getTemplate in src/Plugin/ XBBCode/ EntityTagPlugin.php 
- Get the tag template.
File
- src/Plugin/ TemplateTagPlugin.php, line 75 
Class
- TemplateTagPlugin
- This is a tag that delegates processing to a Twig template.
Namespace
Drupal\xbbcode\PluginCode
protected function getTemplate() : TwigTemplateWrapper {
  if (!$this->templateWrapper) {
    $this->templateWrapper = $this->twig
      ->load($this->template);
  }
  return $this->templateWrapper;
}