taxonomy_vocabulary_static_reset

taxonomy_vocabulary_static_reset(array $ids = NULL)

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 296
Enables the organization of content into categories.

Code

function taxonomy_vocabulary_static_reset(array $ids = NULL) {
  \Drupal::entityManager()->getStorage('taxonomy_vocabulary')->resetCache($ids);
}
doc_Drupal
2016-10-29 09:46:35
Comments
Leave a Comment

Please login to continue.