function taxonomy_terms_static_reset
Same name in other branches
- 7.x modules/taxonomy/taxonomy.module \taxonomy_terms_static_reset()
- 8.9.x core/modules/taxonomy/taxonomy.module \taxonomy_terms_static_reset()
Clear all static cache variables for terms.
Deprecated
in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal::entityTypeManager()->getStorage('taxonomy_term')->resetCache() instead.
See also
https://www.drupal.org/node/3039041
1 call to taxonomy_terms_static_reset()
- TaxonomyDeprecationTest::testTaxonomyDeprecations in core/
modules/ taxonomy/ tests/ src/ Kernel/ TaxonomyDeprecationTest.php
File
-
core/
modules/ taxonomy/ taxonomy.module, line 163
Code
function taxonomy_terms_static_reset() {
@trigger_error("taxonomy_terms_static_reset() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use \\Drupal::entityTypeManager()->getStorage('taxonomy_term')->resetCache() instead. See https://www.drupal.org/node/3039041", E_USER_DEPRECATED);
\Drupal::entityTypeManager()->getStorage('taxonomy_term')
->resetCache();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.