function taxonomy_vocabulary_static_reset
Same name in other branches
- 7.x modules/taxonomy/taxonomy.module \taxonomy_vocabulary_static_reset()
- 9 core/modules/taxonomy/taxonomy.module \taxonomy_vocabulary_static_reset()
Clear all static cache variables for vocabularies.
Parameters
$ids: An array of ids to reset in the entity cache.
File
-
core/
modules/ taxonomy/ taxonomy.module, line 320
Code
function taxonomy_vocabulary_static_reset(array $ids = NULL) {
\Drupal::entityTypeManager()->getStorage('taxonomy_vocabulary')
->resetCache($ids);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.