Ojs\ApiBundle\Controller\Admin\PublisherTypeRestController::newPublishertypeAction PHP Method

newPublishertypeAction() public method

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