You are here

function sitemap_node_delete in Sitemap 2.0.x

Same name and namespace in other branches
  1. 8.2 sitemap.module \sitemap_node_delete()

Implements hook_ENTITY_TYPE_delete().

File

./sitemap.module, line 135
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();
  }
}