You are here

protected function TemplateTagPlugin::getTemplate in Extensible BBCode 8.3

Same name and namespace in other branches
  1. 4.0.x 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

\Twig\Error\LoaderError

\Twig\Error\RuntimeError

\Twig\Error\SyntaxError

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\Plugin

Code

protected function getTemplate() : Twig_TemplateWrapper {
  if (!$this->templateWrapper) {
    $this->templateWrapper = $this->twig
      ->load($this->template);
  }
  return $this->templateWrapper;
}