public function showAction(MeasureUnit $measureunit)
    {
        $editForm = $this->createForm(MeasureUnitType::class, $measureunit, array(
            'action' => $this->generateUrl('admin_shop_measure_unit_update', array('id' => $measureunit->getid())),
            'method' => 'PUT',
        ));
        $deleteForm = $this->createDeleteForm($measureunit->getId(), 'admin_shop_measure_unit_delete');

        return array(

            'measureunit' => $measureunit,
            'edit_form' => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),

        );
    }
public function showAction(MeasureUnit $measureunit)
    {
        $editForm = $this->createForm(MeasureUnitType::class, $measureunit, array(
            'action' => $this->generateUrl('admin_shop_measure_unit_update', array('id' => $measureunit->getid())),
            'method' => 'PUT',
        ));
        $deleteForm = $this->createDeleteForm($measureunit->getId(), 'admin_shop_measure_unit_delete');

        return array(

            'measureunit' => $measureunit,
            'edit_form' => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),

        );
    }
public function showAction ( MeasureUnit $ measureunit ) { $ editForm = $ this -> createForm ( MeasureUnitType :: class , $ measureunit , array ( 'action' => $ this -> generateUrl ( 'admin_shop_measure_unit_update' , array ( 'id' => $ measureunit -> getid ( ) ) ) , 'method' => 'PUT' , ) ) ; $ deleteForm = $ this -> createDeleteForm ( $ measureunit -> getId ( ) , 'admin_shop_measure_unit_delete' ) ; return array ( 'measureunit' => $ measureunit , 'edit_form' => $ editForm -> createView ( ) , 'delete_form' => $ deleteForm -> createView ( ) , ) ; }
Finds and displays a MeasureUnit entity.

@Route("/{id}/show", name="admin_shop_measure_unit_show", requirements={"id"="\d+"})
@Method("GET")
@Template()
Finds and displays a MeasureUnit entity .