You are here

public function PreparedTagElement::getContent in Extensible BBCode 4.0.x

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

Retrieve the rendered content of the element.

Return value

mixed The rendered content.

Overrides NodeElementInterface::getContent

File

src/PreparedTagElement.php, line 129

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());
}