Ojs\ApiBundle\Controller\Journal\JournalArticleRestController::newArticleAction PHP Method

newArticleAction() public method

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