function sitemap_node_delete in Sitemap 8.2
Same name and namespace in other branches
- 2.0.x sitemap.module \sitemap_node_delete()
Implements hook_ENTITY_TYPE_delete().
File
- ./
sitemap.module, line 150 - Provides sitemap functionality.
Code
function sitemap_node_delete(NodeInterface $node) {
if (\Drupal::moduleHandler()
->moduleExists('book')) {
// @TODO: Can we tell if the deleted node was a parent book node?
_sitemap_clear_plugin_cache();
}
}