You are here

public function PreparedTagElement::getContent in Extensible BBCode 8.3

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

Retrieve the rendered content of the element.

Return value

string|mixed The rendered content.

Overrides NodeElementInterface::getContent

File

src/PreparedTagElement.php, line 108

Class

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

Namespace

Drupal\xbbcode

Code

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