Ojs\ApiBundle\Controller\Journal\JournalArticleCitationRestController::newCitationAction PHP Method

newCitationAction() public method

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