public function TagElementInterface::getParent in Extensible BBCode 4.0.x
Same name and namespace in other branches
- 8.3 src/Parser/Tree/TagElementInterface.php \Drupal\xbbcode\Parser\Tree\TagElementInterface::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.
2 methods override TagElementInterface::getParent()
- PreparedTagElement::getParent in src/
PreparedTagElement.php - Retrieve the parent of the current tag.
- TagElement::getParent in src/
Parser/ Tree/ TagElement.php - Retrieve the parent of the current tag.
File
- src/
Parser/ Tree/ TagElementInterface.php, line 158
Class
- TagElementInterface
- A tag occurrence as processed by tag plugins.
Namespace
Drupal\xbbcode\Parser\TreeCode
public function getParent() : NodeElementInterface;