function taxonomy_terms_static_reset
Same name in other branches
- 7.x modules/taxonomy/taxonomy.module \taxonomy_terms_static_reset()
- 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
Code
function taxonomy_terms_static_reset() {
\Drupal::entityTypeManager()->getStorage('taxonomy_term')
->resetCache();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.