You are here

public function TextElement::render in Extensible BBCode 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Parser/Tree/TextElement.php \Drupal\xbbcode\Parser\Tree\TextElement::render()

Render this element to a string.

Return value

string|\Drupal\xbbcode\Parser\Tree\OutputElementInterface The rendered output.

Overrides ElementInterface::render

File

src/Parser/Tree/TextElement.php, line 53

Class

TextElement
An element representing a text fragment.

Namespace

Drupal\xbbcode\Parser\Tree

Code

public function render() : string {
  return $this
    ->getText();
}