Controller/Traits/CountyFormTrait.php
/**
     * Creates a form to delete a County entity by id.
     *
     * @param mixed $county The entity id
     *
     * @return \Symfony\Component\Form\Form The form
     */
Creates a form to delete a County entity by id.
@param mixed $county The entity id

@return \Symfony\Component\Form\Form The form
Creates a form to delete a County entity by id . @param mixed $county The entity id @return \ Symfony \ Component \ Form \ Form The form
private function createDeleteForm(County $county)
    {
        return $this->createFormBuilder()
            ->setAction($this->generateUrl('county', ['county' => $county->getId()]))
            ->setMethod('DELETE')
            ->add('submit', SubmitType::class, ['label' => 'Delete'])
            ->getForm();
    }
private function createDeleteForm ( County $ county ) { return $ this -> createFormBuilder ( ) -> setAction ( $ this -> generateUrl ( 'county' , [ 'county' => $ county -> getId ( ) ] ) ) -> setMethod ( 'DELETE' ) -> add ( 'submit' , SubmitType :: class , [ 'label' => 'Delete' ] ) -> getForm ( ) ; }
Creates a form to delete a County entity by id.
Creates a form to delete a County entity by id .