How to add taxonomy term reference field in a custom form
Well, I have found the way in the change records. take a look at: https://www.drupal.org/node/2418529

Here is the example options for taxonomy fields:

'#type' =&gt; 'entity_autocomplete',
'#target_type' =&gt; 'taxonomy_term',
'#selection_settings' =&gt; [
  'target_bundles' =&gt; array($vid1, $vid2),
],