protected function _prepareView(Content $content, ContentSpec $handlerContent = null, $handlerAction = null) { $root = $this->getContentById($content->getRoot()); return array('view' => 'NyroDevNyroCmsBundle:Handler:sitemap.html.php', 'vars' => array('content' => $content, 'contents' => $this->getHierarchy($root), 'isRoot' => true)); }