Ojs\ApiBundle\Controller\Admin\SubjectRestController::newSubjectAction PHP Method

newSubjectAction() public method

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