/**
  * @return string
  */
 public function renderTagRss()
 {
     $rss = array();
     foreach ($this->tagManager->findBy(array('enabled' => true)) as $tag) {
         $rss[] = sprintf('<link href="%s" title="%s : %s" type="application/rss+xml" rel="alternate" />', $this->router->generate('sonata_news_tag', array('tag' => $tag->getSlug(), '_format' => 'rss'), true), $this->blog->getTitle(), $tag->getName());
     }
     return implode("\n", $rss);
 }
 /**
  * @return string
  */
 public function allowCreateBaseCategory()
 {
     $categoryContext = $this->categoryManager->getCategoryContexts();
     try {
         $defunctContexts = $this->contextManager->getDefunctContext($categoryContext);
         if ($defunctContexts && is_array($defunctContexts)) {
             return true;
         } else {
             return false;
         }
     } catch (\Exception $e) {
         return false;
     }
 }