Ojs\ApiBundle\Controller\Admin\PeriodRestController::newPeriodAction PHP Method

newPeriodAction() public method

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