/** * Preview an item that is already cached. * * @param FeedItem $feedItem The document FeedItem (retrieving for a ParamConverter with the id) * * @return string */ public function previewCachedAction(FeedItem $feedItem) { return $this->render('Api43FeedBundle:FeedItem:content.html.twig', array('title' => $feedItem->getTitle(), 'content' => $feedItem->getContent(), 'url' => $feedItem->getLink(), 'modal' => true)); }