private function replaceNode(Node $node)
    {
        //Looking for parent block call
        if (!empty($inner = $node->findNode($this->name))) {
            //This construction allows child block use parent content
            $inner->nodes = $this->nodes;
        }

        $this->nodes = $node->nodes;
    }
private function replaceNode(Node $node)
    {
        //Looking for parent block call
        if (!empty($inner = $node->findNode($this->name))) {
            //This construction allows child block use parent content
            $inner->nodes = $this->nodes;
        }

        $this->nodes = $node->nodes;
    }
private function replaceNode ( Node $ node ) { //Looking for parent block call if ( ! empty ( $ inner = $ node -> findNode ( $ this -> name ) ) ) { //This construction allows child block use parent content $ inner -> nodes = $ this -> nodes ; } $ this -> nodes = $ node -> nodes ; }
Replace node content with content provided by external node, external node can still use
content of parent block by defining block named identical to it's parent.

@param Node $node
Replace node content with content provided by external node external node can still use content of parent block by defining block named identical to it s parent .