title: How do I get the parent tid of a taxonomy term in Drupal 8
body: <p>I used the following to get the parent of a taxonomy term in drupal 8:</p>
  
  <pre><code>$parent = \Drupal::entityTypeManager()-&gt;getStorage('taxonomy_term')-&gt;loadParents($termId);
  
  $parent = reset($parent);
  </code></pre>
  
  <p>Now that I have the parent how do I get the parent tid from that?</p>