taxonomy_term_load($tid)
Return the taxonomy term entity matching a term ID.
$tid: A term's ID
\Drupal\taxonomy\Entity\Term|null A taxonomy term entity, or NULL if the term was not found. Results are statically cached.
in Drupal 8.x, will be removed before Drupal 9.0. Use \Drupal\taxonomy\Entity\Term::load().
function taxonomy_term_load($tid) { if (!is_numeric($tid)) { return NULL; } return Term::load($tid); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!taxonomy!taxonomy.module/function/taxonomy_term_load/8.1.x