public function NullTagPlugin::doProcess in Extensible BBCode 4.0.x
Same name and namespace in other branches
- 8.3 src/Plugin/XBBCode/NullTagPlugin.php \Drupal\xbbcode\Plugin\XBBCode\NullTagPlugin::doProcess()
Create the actual output.
Tag plugins should override this function rather than ::process(), in order to let the metadata from sub-tags bubble up.
Parameters
\Drupal\xbbcode\Parser\Tree\TagElementInterface $tag: Tag element in the parse tree.
Return value
\Drupal\xbbcode\TagProcessResult Tag process result.
Overrides TagPluginBase::doProcess
File
- src/
Plugin/ XBBCode/ NullTagPlugin.php, line 36
Class
- NullTagPlugin
- Provides a fallback placeholder plugin.
Namespace
Drupal\xbbcode\Plugin\XBBCodeCode
public function doProcess(TagElementInterface $tag) : TagProcessResult {
return new TagProcessResult((string) $tag
->getOuterSource());
}