$form = $this->createFormBuilder() ->add('email', EmailType::class, [ 'label' => 'Your Email' ]) ->add('message', TextareaType::class, [ 'label' => 'Your Message' ]) ->getForm(); $field = $form->get('email'); $field->setLabel('Email Address');In this example, we use the get() method to retrieve the 'email' field and then change its label from 'Your Email' to 'Email Address'. The Symfony component is included in the Symfony Framework and can also be used as a standalone package.