You are here

public function TextElement::getText 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::getText()

Get the text.

Return value

string The text.

1 call to TextElement::getText()
TextElement::render in src/Parser/Tree/TextElement.php
Render this element to a string.

File

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

Class

TextElement
An element representing a text fragment.

Namespace

Drupal\xbbcode\Parser\Tree

Code

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