public function renderContainer($name, $page = null, BlockInterface $parentContainer = null) { try { $response = parent::renderContainer($name, $page, $parentContainer); return $response; } catch (\RunTimeException $e) { // silently fail error message return ''; } }
/** * @param \Sonata\PageBundle\Model\PageInterface $page * @return array */ protected function getRenderPageParams(PageInterface $page) { return array_merge(parent::getRenderPageParams($page), array('page_admin' => $this->getPageAdmin(), 'block_admin' => $this->getBlockAdmin())); }