public function TagElement::render in Extensible BBCode 8.3
Same name and namespace in other branches
- 4.0.x 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 191
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);
}