public function NodeElement::append in Extensible BBCode 4.0.x
Same name and namespace in other branches
- 8.3 src/Parser/Tree/NodeElement.php \Drupal\xbbcode\Parser\Tree\NodeElement::append()
Append an element to the children of this element.
Parameters
\Drupal\xbbcode\Parser\Tree\ElementInterface $element: The new element.
Overrides NodeElementInterface::append
File
- src/
Parser/ Tree/ NodeElement.php, line 27
Class
- NodeElement
- A node element contains other elements.
Namespace
Drupal\xbbcode\Parser\TreeCode
public function append(ElementInterface $element) : void {
$this->children[] = $element;
}