You are here

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

Same name and namespace in other branches
  1. 8.3 src/PreparedTagElement.php \Drupal\xbbcode\PreparedTagElement::setParent()

Set the parent of the current tag.

Parameters

\Drupal\xbbcode\Parser\Tree\NodeElementInterface $parent: Parent node.

Overrides TagElementInterface::setParent

File

src/PreparedTagElement.php, line 220

Class

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

Namespace

Drupal\xbbcode

Code

public function setParent(NodeElementInterface $parent) : void {
  $this->tag
    ->setParent($parent);
}