public function dashboardNews(Request $request)
    {
        $news = $this->getNews($request->getHost());

        // One 'alert' and one 'info' max. Regular info-items can be disabled,
        // but Alerts can't.
        $context = [
            'alert'       => empty($news['alert']) ? null : $news['alert'],
            'news'        => empty($news['news']) ? null : $news['news'],
            'information' => empty($news['information']) ? null : $news['information'],
            'error'       => empty($news['error']) ? null : $news['error'],
            'disable'     => $this->getOption('general/backend/news/disable'),
        ];

        $response = $this->render('@bolt/components/panel-news.twig', ['context' => $context]);

        return $response;
    }
public function dashboardNews(Request $request)
    {
        $news = $this->getNews($request->getHost());

        // One 'alert' and one 'info' max. Regular info-items can be disabled,
        // but Alerts can't.
        $context = [
            'alert'       => empty($news['alert']) ? null : $news['alert'],
            'news'        => empty($news['news']) ? null : $news['news'],
            'information' => empty($news['information']) ? null : $news['information'],
            'error'       => empty($news['error']) ? null : $news['error'],
            'disable'     => $this->getOption('general/backend/news/disable'),
        ];

        $response = $this->render('@bolt/components/panel-news.twig', ['context' => $context]);

        return $response;
    }
public function dashboardNews ( Request $ request ) { $ news = $ this -> getNews ( $ request -> getHost ( ) ) ; // One 'alert' and one 'info' max. Regular info-items can be disabled, // but Alerts can't. $ context = [ 'alert' => empty ( $ news [ 'alert' ] ) ? null : $ news [ 'alert' ] , 'news' => empty ( $ news [ 'news' ] ) ? null : $ news [ 'news' ] , 'information' => empty ( $ news [ 'information' ] ) ? null : $ news [ 'information' ] , 'error' => empty ( $ news [ 'error' ] ) ? null : $ news [ 'error' ] , 'disable' => $ this -> getOption ( 'general/backend/news/disable' ) , ] ; $ response = $ this -> render ( '@bolt/components/panel-news.twig' , [ 'context' => $ context ] ) ; return $ response ; }
News. Film at 11.

@param Request $request

@return \Bolt\Response\TemplateResponse
News . Film at 11 .