You are here

function taxonomy_vocabulary_static_reset in Drupal 8

Same name and namespace in other branches
  1. 7 modules/taxonomy/taxonomy.module \taxonomy_vocabulary_static_reset()
  2. 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
Enables the organization of content into categories.

Code

function taxonomy_vocabulary_static_reset(array $ids = NULL) {
  \Drupal::entityTypeManager()
    ->getStorage('taxonomy_vocabulary')
    ->resetCache($ids);
}