public function TagElement::getSource in Extensible BBCode 4.0.x
Same name and namespace in other branches
- 8.3 src/Parser/Tree/TagElement.php \Drupal\xbbcode\Parser\Tree\TagElement::getSource()
Retrieve the content source of the tag.
[tag]CONTENT[/tag]
This is the content of the tag before rendering.
@todo Use string|Stringable in PHP 8.
Return value
mixed The tag content source. Must be a string or a stringable object.
Overrides TagElementInterface::getSource
File
- src/
Parser/ Tree/ TagElement.php, line 184
Class
- TagElement
- A BBCode tag element.
Namespace
Drupal\xbbcode\Parser\TreeCode
public function getSource() : string {
return $this->source;
}