/** * Creates a form to delete a State entity. * * @param State $state The State entity * * @return \Symfony\Component\Form\Form The form */ private function createDeleteForm(State $state) { return $this->createFormBuilder()->setAction($this->generateUrl('state_delete', array('id' => $state->getId())))->setMethod('DELETE')->getForm(); }