Ojs\ApiBundle\Controller\Admin\ContactTypesRestController::newContacttypeAction PHP Method

newContacttypeAction() public method

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