You are here

function taxonomy_terms_static_reset in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/taxonomy/taxonomy.module \taxonomy_terms_static_reset()

Clear all static cache variables for terms.

1 call to taxonomy_terms_static_reset()
TermTest::testNodeTermCreationAndDeletion in core/modules/taxonomy/src/Tests/TermTest.php
Test term creation with a free-tagging vocabulary from the node form.

File

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

Code

function taxonomy_terms_static_reset() {
  \Drupal::entityManager()
    ->getStorage('taxonomy_term')
    ->resetCache();
}