You are here

public function TextElement::setText 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::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\Tree

Code

public function setText(string $text) : self {
  $this->text = $text;
  return $this;
}