You are here

public function PreparedTagElement::getSource in Extensible BBCode 8.3

Same name and namespace in other branches
  1. 4.0.x src/PreparedTagElement.php \Drupal\xbbcode\PreparedTagElement::getSource()

Retrieve the content source of the tag.

[tag]CONTENT[/tag]

This is the content of the tag before rendering.

Return value

string|mixed The tag content source.

Overrides TagElementInterface::getSource

File

src/PreparedTagElement.php, line 115

Class

PreparedTagElement
Adapter for the tag element that marks markup as safe.

Namespace

Drupal\xbbcode

Code

public function getSource() {
  return Markup::create($this->tag
    ->getSource());
}