protected function generateNodeGlobal($htmlContent, $name, $language, $routePattern)
    {
        $nodeLegalBlock = new Block();
        $nodeLegalBlock->setLabel('Wysiwyg');
        $nodeLegalBlock->setLanguage($language);
        $nodeLegalBlock->setComponent(TinyMCEWysiwygStrategy::NAME);
        $nodeLegalBlock->setAttributes(array(
            "htmlContent" => $htmlContent
        ));

        $nodeLegalBlock = $this->generateBlock($nodeLegalBlock);

        $main = new Area();
        $main->addBlock($nodeLegalBlock);

        $nodeLegal = $this->createBaseNode();
        $nodeLegal->setArea('main', $main);

        $nodeLegal->setNodeId('fixture_page_legal_mentions');
        $nodeLegal->setName($name);
        $nodeLegal->setVersionName($this->getVersionName($nodeLegal));
        $nodeLegal->setLanguage($language);
        $nodeLegal->setParentId(NodeInterface::ROOT_NODE_ID);
        $nodeLegal->setOrder(10);
        $nodeLegal->setRoutePattern($routePattern);
        $nodeLegal->setInFooter(true);
        $nodeLegal->setInMenu(false);

        return $nodeLegal;
    }
protected function generateNodeGlobal($htmlContent, $name, $language, $routePattern)
    {
        $nodeLegalBlock = new Block();
        $nodeLegalBlock->setLabel('Wysiwyg');
        $nodeLegalBlock->setLanguage($language);
        $nodeLegalBlock->setComponent(TinyMCEWysiwygStrategy::NAME);
        $nodeLegalBlock->setAttributes(array(
            "htmlContent" => $htmlContent
        ));

        $nodeLegalBlock = $this->generateBlock($nodeLegalBlock);

        $main = new Area();
        $main->addBlock($nodeLegalBlock);

        $nodeLegal = $this->createBaseNode();
        $nodeLegal->setArea('main', $main);

        $nodeLegal->setNodeId('fixture_page_legal_mentions');
        $nodeLegal->setName($name);
        $nodeLegal->setVersionName($this->getVersionName($nodeLegal));
        $nodeLegal->setLanguage($language);
        $nodeLegal->setParentId(NodeInterface::ROOT_NODE_ID);
        $nodeLegal->setOrder(10);
        $nodeLegal->setRoutePattern($routePattern);
        $nodeLegal->setInFooter(true);
        $nodeLegal->setInMenu(false);

        return $nodeLegal;
    }
@param string $htmlContent
@param string $name
@param string $language
@param string $routePattern

@return Node