custom field - How to get saved term selected for entity_autocomplete I've looked all over, and for my level of understanding, I can't figure out how to get the stored value of an entity autocomplete field targeting taxonomy term type. I thought I could do something similar to what I have for select field, but it breaks the page. This is for a custom field...

    $element['description_term'] = array(
      '#type' =&gt; 'entity_autocomplete',
      '#target_type' =&gt; 'taxonomy_term',
      '#selection_settings' =&gt; [
        'target_bundles' =&gt; [
          'descriptors'
        ],
      ],
      '#title' =&gt; t('descriptor'),
      'default_value' =&gt; previously-entered-value,
      // this didn't work... '#default_value' =&gt; isset($items[$delta]-&gt;descriptor) ? $items[$delta]-&gt;descriptor : NULL,
      '#required' =&gt; FALSE,
  );
with some help above from Ajay Reddy, I was able to finally get to something that worked... Here's what did it: 


  '#default_value' =>
  \Drupal\taxonomy\Entity\Term::load($items[$delta]->description_term),