public function TemplateTagPlugin::doProcess in Extensible BBCode 4.0.x
Same name and namespace in other branches
- 8.3 src/Plugin/TemplateTagPlugin.php \Drupal\xbbcode\Plugin\TemplateTagPlugin::doProcess()
Throws
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\PluginCode
public function doProcess(TagElementInterface $tag) : TagProcessResult {
return new TagProcessResult($this
->getTemplate()
->render([
'settings' => $this->settings,
'tag' => $tag,
]));
}