Ojs\AdminBundle\Controller\AdminPeriodController::newAction PHP Method

newAction() public method

Displays a form to create a new Period entity.
public newAction ( )
    public function newAction()
    {
        $entity = new Period();
        $form = $this->createCreateForm($entity);
        return $this->render('OjsAdminBundle:AdminPeriod:new.html.twig', array('entity' => $entity, 'form' => $form->createView()));
    }