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