Ojs\JournalBundle\Controller\DesignController::newAction PHP Метод

newAction() публичный Метод

Displays a form to create a new Design entity.
public newAction ( ) : Response
Результат Symfony\Component\HttpFoundation\Response
    public function newAction()
    {
        $journal = $this->get('ojs.journal_service')->getSelectedJournal();
        if (!$this->isGranted('CREATE', $journal, 'design')) {
            throw new AccessDeniedException("You are not authorized for create a this journal's design!");
        }
        $entity = new Design();
        $form = $this->createCreateForm($entity, $journal);
        return $this->render('OjsJournalBundle:Design:new.html.twig', array('form' => $form->createView()));
    }