You are here

public function TagElement::getParent in Extensible BBCode 4.0.x

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

Retrieve the parent of the current tag.

This may be either another tag or the root element.

Note that the parent's rendered content will obviously be incomplete during rendering, and should not be accessed.

Return value

\Drupal\xbbcode\Parser\Tree\NodeElementInterface Parent node.

Overrides TagElementInterface::getParent

File

src/Parser/Tree/TagElement.php, line 210

Class

TagElement
A BBCode tag element.

Namespace

Drupal\xbbcode\Parser\Tree

Code

public function getParent() : NodeElementInterface {
  return $this->parent;
}