Ojs\ApiBundle\Controller\Journal\JournalArticleAuthorRestController::newAuthorAction PHP Method

newAuthorAction() public method

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