You are here

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

Same name and namespace in other branches
  1. 8.3 src/PreparedTagElement.php \Drupal\xbbcode\PreparedTagElement::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/PreparedTagElement.php, line 213

Class

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

Namespace

Drupal\xbbcode

Code

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