Ojs\ApiBundle\Controller\Journal\JournalThemeRestController::newThemeAction PHP Method

newThemeAction() public method

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