Ojs\ApiBundle\Controller\Admin\JournalRestController::newJournalAction PHP Method

newJournalAction() public method

Presents the form to use to create a new Journal.
public newJournalAction ( ) : Symfony\Component\Form\FormTypeInterface
return Symfony\Component\Form\FormTypeInterface
    public function newJournalAction()
    {
        if (!$this->isGranted('CREATE', new Journal())) {
            throw new AccessDeniedException();
        }
        return $this->createForm(new JournalType(), null, ['csrf_protection' => false]);
    }