public function TextElement::setText in Extensible BBCode 8.3
Same name and namespace in other branches
- 4.0.x src/Parser/Tree/TextElement.php \Drupal\xbbcode\Parser\Tree\TextElement::setText()
Set the text.
Parameters
string $text: The text.
Return value
$this
1 call to TextElement::setText()
- TextElement::__construct in src/
Parser/ Tree/ TextElement.php - TextElement constructor.
File
- src/
Parser/ Tree/ TextElement.php, line 45
Class
- TextElement
- An element representing a text fragment.
Namespace
Drupal\xbbcode\Parser\TreeCode
public function setText($text) : self {
$this->text = $text;
return $this;
}