public function PreparedTagElement::getParent in Extensible BBCode 8.3
Same name and namespace in other branches
- 4.0.x 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 193
Class
- PreparedTagElement
- Adapter for the tag element that marks markup as safe.
Namespace
Drupal\xbbcodeCode
public function getParent() : NodeElementInterface {
return $this->tag
->getParent();
}