Ojs\AdminBundle\Controller\AdminController::dashboardAction PHP Method

dashboardAction() public method

public dashboardAction ( ) : RedirectResponse | Response
return Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response
    public function dashboardAction()
    {
        if ($this->isGranted('VIEW', new Journal())) {
            $switcher = $this->createForm(new QuickSwitchType(), null)->createView();
            return $this->render('OjsAdminBundle:Admin:dashboard.html.twig', ['switcher' => $switcher]);
        } else {
            return $this->redirect($this->generateUrl('ojs_user_index'));
        }
    }