Controller/StateController.php
/**
     * Gets edit form existing State entity.
     *
     * @Route("/{state}/edit", name="state_edit")
     *
     * @Method({"GET"})
     * @Template("LthrtCCSBundle:State:edit.html.twig")
     */
Gets edit form existing State entity.


Gets edit form existing State entity .
public function editAction(
        Request $request,
        State   $state
    ) {
        $this->notFound($state);
        $form       = $this->createEditForm($state);
        $deleteForm = $this->createDeleteForm($state);
        return [
            'state'       => $state,
            'form'        => $form->createView(),
            'delete_form' => $deleteForm->createView(),
        ];
    }
public function editAction ( Request $ request , State $ state ) { $ this -> notFound ( $ state ) ; $ form = $ this -> createEditForm ( $ state ) ; $ deleteForm = $ this -> createDeleteForm ( $ state ) ; return [ 'state' => $ state , 'form' => $ form -> createView ( ) , 'delete_form' => $ deleteForm -> createView ( ) , ] ; }
Gets edit form existing State entity.
Gets edit form existing State entity .