Ojs\ApiBundle\Controller\Admin\PublisherThemeRestController::newPublisherthemeAction PHP Method

newPublisherthemeAction() public method

Presents the form to use to create a new PublisherTheme.
public newPublisherthemeAction ( ) : Symfony\Component\Form\FormTypeInterface
return Symfony\Component\Form\FormTypeInterface
    public function newPublisherthemeAction()
    {
        if (!$this->isGranted('CREATE', new PublisherTheme())) {
            throw new AccessDeniedException();
        }
        return $this->createForm(new PublisherThemeType(), null, ['csrf_protection' => false]);
    }