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

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

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

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

        $nodeError503->setNodeType(NodeInterface::TYPE_ERROR);
        $nodeError503->setLanguage($language);
        $nodeError503->setNodeId(NodeInterface::ERROR_503_NODE_ID);
        $nodeError503->setName('503');
        $nodeError503->setVersionName($this->getVersionName($nodeError503));
        $nodeError503->setCreatedBy('fake_admin');
        $nodeError503->setParentId(NodeInterface::ROOT_PARENT_ID);
        $nodeError503->setRoutePattern($routePattern);
        $nodeError503->setInFooter(false);
        $nodeError503->setInMenu(false);
        $nodeError503->setOrder(-1);

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

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

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

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

        $nodeError503->setNodeType(NodeInterface::TYPE_ERROR);
        $nodeError503->setLanguage($language);
        $nodeError503->setNodeId(NodeInterface::ERROR_503_NODE_ID);
        $nodeError503->setName('503');
        $nodeError503->setVersionName($this->getVersionName($nodeError503));
        $nodeError503->setCreatedBy('fake_admin');
        $nodeError503->setParentId(NodeInterface::ROOT_PARENT_ID);
        $nodeError503->setRoutePattern($routePattern);
        $nodeError503->setInFooter(false);
        $nodeError503->setInMenu(false);
        $nodeError503->setOrder(-1);

        return $nodeError503;
    }
@param string $htmlContent
@param string $language
@param string $routePattern

@return Node