protected function getViewDataFromRequest()
    {
        $lookupParams = ['warning', 'error'];
        $result = [];
        foreach ($lookupParams as $lookupParam) {
            if ($this->getRequest()->hasParameter($lookupParam) && !empty($this->getRequest()->getParameter($lookupParam))) {
                $result[] = [
                    'level' => $lookupParam,
                    'content' => $this->getRequest()->getParameter($lookupParam),
                    'timeout' => -1
                ];
            }
        }
        return $result;
    }
protected function getViewDataFromRequest()
    {
        $lookupParams = ['warning', 'error'];
        $result = [];
        foreach ($lookupParams as $lookupParam) {
            if ($this->getRequest()->hasParameter($lookupParam) && !empty($this->getRequest()->getParameter($lookupParam))) {
                $result[] = [
                    'level' => $lookupParam,
                    'content' => $this->getRequest()->getParameter($lookupParam),
                    'timeout' => -1
                ];
            }
        }
        return $result;
    }
protected function getViewDataFromRequest ( ) { $ lookupParams = [ 'warning' , 'error' ] ; $ result = [ ] ; foreach ( $ lookupParams as $ lookupParam ) { if ( $ this -> getRequest ( ) -> hasParameter ( $ lookupParam ) && ! empty ( $ this -> getRequest ( ) -> getParameter ( $ lookupParam ) ) ) { $ result [ ] = [ 'level' => $ lookupParam , 'content' => $ this -> getRequest ( ) -> getParameter ( $ lookupParam ) , 'timeout' => - 1 ] ; } } return $ result ; }
Get data from request to be passed to renderer
@return array
Get data from request to be passed to renderer