You are here

public function TemplateTagPlugin::doProcess in Extensible BBCode 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/TemplateTagPlugin.php \Drupal\xbbcode\Plugin\TemplateTagPlugin::doProcess()

Throws

\Twig\Error\LoaderError

\Twig\Error\RuntimeError

\Twig\Error\SyntaxError

Overrides TagPluginBase::doProcess

1 call to TemplateTagPlugin::doProcess()
EntityTagPlugin::doProcess in src/Plugin/XBBCode/EntityTagPlugin.php
Create the actual output.
1 method overrides TemplateTagPlugin::doProcess()
EntityTagPlugin::doProcess in src/Plugin/XBBCode/EntityTagPlugin.php
Create the actual output.

File

src/Plugin/TemplateTagPlugin.php, line 89

Class

TemplateTagPlugin
This is a tag that delegates processing to a Twig template.

Namespace

Drupal\xbbcode\Plugin

Code

public function doProcess(TagElementInterface $tag) : TagProcessResult {
  return new TagProcessResult($this
    ->getTemplate()
    ->render([
    'settings' => $this->settings,
    'tag' => $tag,
  ]));
}