You are here

class RootElement in Extensible BBCode 8.3

Same name and namespace in other branches
  1. 4.0.x src/Parser/Tree/RootElement.php \Drupal\xbbcode\Parser\Tree\RootElement

The root element of the tag tree.

Hierarchy

Expanded class hierarchy of RootElement

1 file declares its use of RootElement
XBBCodeParser.php in src/Parser/XBBCodeParser.php

File

src/Parser/Tree/RootElement.php, line 8

Namespace

Drupal\xbbcode\Parser\Tree
View source
class RootElement extends NodeElement {

  /**
   * {@inheritdoc}
   */
  public function render() : string {
    return $this
      ->getContent();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
NodeElement::$children protected property The children of this node.
NodeElement::$output protected property The rendered children of this node.
NodeElement::append public function Append an element to the children of this element. Overrides NodeElementInterface::append
NodeElement::getChildren public function Get all children of the element. Overrides NodeElementInterface::getChildren
NodeElement::getContent public function Retrieve the rendered content of the element. Overrides NodeElementInterface::getContent
NodeElement::getDescendants public function Retrieve the descendants of the node. Overrides NodeElementInterface::getDescendants
NodeElement::getRenderedChildren public function Retrieve the rendered output of each child. Overrides NodeElementInterface::getRenderedChildren
RootElement::render public function Render this element to a string. Overrides ElementInterface::render