public function TagElement::render in Extensible BBCode 4.0.x
Same name and namespace in other branches
- 8.3 src/Parser/Tree/TagElement.php \Drupal\xbbcode\Parser\Tree\TagElement::render()
Throws
\InvalidArgumentException If the tag does not have an assigned processor.
Overrides ElementInterface::render
File
- src/
Parser/ Tree/ TagElement.php, line 227
Class
- TagElement
- A BBCode tag element.
Namespace
Drupal\xbbcode\Parser\TreeCode
public function render() : OutputElementInterface {
if (!$this
->getProcessor()) {
throw new \InvalidArgumentException("Missing processor for tag [{$this->name}]");
}
return $this
->getProcessor()
->process($this);
}