Ojs\CoreBundle\Controller\OjsController::errorFlashBag PHP Метод

errorFlashBag() защищенный Метод

protected errorFlashBag ( $text ) : boolean
$text
Результат boolean
    protected function errorFlashBag($text)
    {
        $session = $this->get('session');
        $flashBag = $session->getFlashBag();
        $translator = $this->get('translator');
        $flashBag->add('error', $translator->trans($text));
        return true;
    }