You are here

function _sitemap_clear_plugin_cache in Sitemap 8.2

Same name and namespace in other branches
  1. 2.0.x sitemap.module \_sitemap_clear_plugin_cache()

Clears the sitemap plugin cache.

3 calls to _sitemap_clear_plugin_cache()
sitemap_node_delete in ./sitemap.module
Implements hook_ENTITY_TYPE_delete().
sitemap_taxonomy_vocabulary_delete in ./sitemap.module
Implements hook_ENTITY_TYPE_delete().
sitemap_taxonomy_vocabulary_insert in ./sitemap.module
Implements hook_ENTITY_TYPE_insert().

File

./sitemap.module, line 160
Provides sitemap functionality.

Code

function _sitemap_clear_plugin_cache() {
  \Drupal::service('plugin.manager.sitemap')
    ->clearCachedDefinitions();
}