function taxonomy_term_load

Return the taxonomy term entity matching a term ID.

Parameters

$tid: A term's ID

Return value

Drupal\taxonomy\Plugin\Core\Entity\Term|false A taxonomy term entity, or FALSE if the term was not found. Results are statically cached.

9 calls to taxonomy_term_load()
EntityCrudHookTest::testTaxonomyTermHooks in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php
Tests hook invocations for CRUD operations on taxonomy terms.
forum_forum_load in drupal/core/modules/forum/forum.module
Returns a tree of all forums for a given taxonomy term ID.
forum_node_validate in drupal/core/modules/forum/forum.module
Implements hook_node_validate().
IndexTidDepth::title in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/argument/IndexTidDepth.php
Get the title this argument will assign the view, given the argument.
LoadMultipleTest::testTaxonomyTermMultipleLoad in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/LoadMultipleTest.php
Create a vocabulary and some taxonomy terms, ensuring they're loaded correctly using taxonomy_term_load_multiple().

... See full list

File

drupal/core/modules/taxonomy/taxonomy.module, line 855
Enables the organization of content into categories.

Code

function taxonomy_term_load($tid) {
  if (!is_numeric($tid)) {
    return FALSE;
  }
  return entity_load('taxonomy_term', $tid);
}