Example #1
0
 /**
  * Removes this node and all its child nodes.
  *
  * @return void
  * @api
  */
 public function remove()
 {
     if (!$this->isNodeDataMatchingContext()) {
         $this->materializeNodeData();
     }
     $this->nodeData->remove();
     $this->context->getFirstLevelNodeCache()->flush();
     $this->emitNodeRemoved($this);
 }