You are here

public function TagElementInterface::getOuterSource 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::getOuterSource()

Retrieve the content including the opening and closing tags.

Tags inside the content will still be rendered.

@todo Use string|Stringable in PHP 8.

Return value

mixed The tag source. Must be a string or a stringable object.

2 methods override TagElementInterface::getOuterSource()
PreparedTagElement::getOuterSource in src/PreparedTagElement.php
Retrieve the content including the opening and closing tags.
TagElement::getOuterSource in src/Parser/Tree/TagElement.php
Retrieve the content including the opening and closing tags.

File

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

Class

TagElementInterface
A tag occurrence as processed by tag plugins.

Namespace

Drupal\xbbcode\Parser\Tree

Code

public function getOuterSource();