title: How to access the entity inside the buildForm method of a form
body: <p>I'm trying to get the entity inside the own form. I lazy remember a getData() method, but it doesn't exist inside the form, and I can't remember how to use it.</p>
  
  <p>Is there any way to get the entity inside the buildform method not using an event listener?</p>
  
  <p>I mean, something like this:</p>
  
  <pre><code> public function buildForm(FormBuilderInterface $builder, array $options)
     {
          /*some method to get the entity of the form such as getEntity????????*/
          $builder-&gt;add('field');
     }
  </code></pre>