ModelBundle/DataFixtures/MongoDB/DemoContent/ContactDataGenerator.php
protected function generateNodeGlobal($htmlContent, $name, $language, $routePattern)
    {
        $nodeContactBlock = new Block();
        $nodeContactBlock->setLabel('Wysiwyg');
        $nodeContactBlock->setLanguage($language);
        $nodeContactBlock->setComponent(TinyMCEWysiwygStrategy::NAME);
        $nodeContactBlock->setAttributes(array(
            "htmlContent" => $htmlContent
        ));

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

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

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

        $nodeContact->setNodeId('fixture_page_contact');
        $nodeContact->setName($name);
        $nodeContact->setVersionName($this->getVersionName($nodeContact));
        $nodeContact->setLanguage($language);
        $nodeContact->setParentId(NodeInterface::ROOT_NODE_ID);
        $nodeContact->setOrder(9);
        $nodeContact->setRoutePattern($routePattern);
        $nodeContact->setInFooter(false);
        $nodeContact->setInMenu(true);
        $nodeContact->setSpecialPageName('DEFAULT');

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

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

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

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

        $nodeContact->setNodeId('fixture_page_contact');
        $nodeContact->setName($name);
        $nodeContact->setVersionName($this->getVersionName($nodeContact));
        $nodeContact->setLanguage($language);
        $nodeContact->setParentId(NodeInterface::ROOT_NODE_ID);
        $nodeContact->setOrder(9);
        $nodeContact->setRoutePattern($routePattern);
        $nodeContact->setInFooter(false);
        $nodeContact->setInMenu(true);
        $nodeContact->setSpecialPageName('DEFAULT');

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

@return Node