You are here

function _sitemap_clear_plugin_cache in Sitemap 2.0.x

Same name and namespace in other branches
  1. 8.2 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 145
Provides sitemap functionality.

Code

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