You are here

public function NullTagPlugin::doProcess in Extensible BBCode 8.3

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

Class

NullTagPlugin
Provides a fallback placeholder plugin.

Namespace

Drupal\xbbcode\Plugin\XBBCode

Code

public function doProcess(TagElementInterface $tag) : TagProcessResult {
  return new TagProcessResult((string) $tag
    ->getOuterSource());
}