$form = $this->createFormBuilder($data) ->add('firstName', TextType::class) ->add('lastName', TextType::class) ->add('save', SubmitType::class) ->getForm();In the above example, we use the createFormBuilder method to define a new form with fields for first name, last name, and a submit button. The resulting form object can then be used to display and handle user input. Package Library: Symfony\Component\Form