You are here

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

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

Retrieve the rendered content of the element.

Return value

mixed The rendered content.

Overrides NodeElementInterface::getContent

2 calls to NodeElement::getContent()
RootElement::render in src/Parser/Tree/RootElement.php
Render this element to a string.
TagElement::getOuterSource in src/Parser/Tree/TagElement.php
Retrieve the content including the opening and closing tags.

File

src/Parser/Tree/NodeElement.php, line 41

Class

NodeElement
A node element contains other elements.

Namespace

Drupal\xbbcode\Parser\Tree

Code

public function getContent() : string {
  return implode('', $this
    ->getRenderedChildren());
}