Ojs\ApiBundle\Controller\Journal\JournalIssueFileRestController::newFileAction PHP Method

newFileAction() public method

Presents the form to use to create a new IssueFile.
public newFileAction ( ) : Symfony\Component\Form\FormTypeInterface
return Symfony\Component\Form\FormTypeInterface
    public function newFileAction()
    {
        $journal = $this->get('ojs.journal_service')->getSelectedJournal();
        if (!$this->isGranted('CREATE', $journal, 'issues')) {
            throw new AccessDeniedException();
        }
        return $this->createForm(new IssueFileType(), null, ['csrf_protection' => false]);
    }