You are here

function taxonomy_terms_static_reset in Drupal 8

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

Clear all static cache variables for terms.

2 calls to taxonomy_terms_static_reset()
TaxonomyQueryAlterTest::setupQueryTagTestHooks in core/modules/taxonomy/tests/src/Kernel/TaxonomyQueryAlterTest.php
Sets up the hooks in the test module.
TermTest::testNodeTermCreationAndDeletion in core/modules/taxonomy/tests/src/Functional/TermTest.php
Test term creation with a free-tagging vocabulary from the node form.

File

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

Code

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