You are here

public function TagElementInterface::getSource in Extensible BBCode 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Parser/Tree/TagElementInterface.php \Drupal\xbbcode\Parser\Tree\TagElementInterface::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.

2 methods override TagElementInterface::getSource()
PreparedTagElement::getSource in src/PreparedTagElement.php
Retrieve the content source of the tag.
TagElement::getSource in src/Parser/Tree/TagElement.php
Retrieve the content source of the tag.

File

src/Parser/Tree/TagElementInterface.php, line 125

Class

TagElementInterface
A tag occurrence as processed by tag plugins.

Namespace

Drupal\xbbcode\Parser\Tree

Code

public function getSource();