/** * @param Survey $survey * @return \Symfony\Component\Form\Form */ private function createDeleteForm(Survey $survey) { return $this->createFormBuilder()->setAction($this->generateUrl('admin_survey_delete', ['id' => $survey->getId()]))->setMethod('DELETE')->add('submit', SubmitType::class, ['label' => ' ', 'attr' => ['class' => 'btn btn-minier btn-danger ace-icon fa fa-trash-o bigger-115']])->getForm(); }