Ojs\CoreBundle\Controller\OjsController::successFlashBag PHP Method

successFlashBag() protected method

protected successFlashBag ( $text ) : boolean
$text
return boolean
    protected function successFlashBag($text)
    {
        $session = $this->get('session');
        $flashBag = $session->getFlashBag();
        $translator = $this->get('translator');
        $flashBag->add('success', $translator->trans($text));
        return true;
    }