You are here

function simple_sitemap_menu_delete in Simple XML sitemap 8.2

Same name and namespace in other branches
  1. 8.3 simple_sitemap.module \simple_sitemap_menu_delete()
  2. 4.x simple_sitemap.module \simple_sitemap_menu_delete()

Implements hook_menu_delete().

Removes settings for the removed menu.

Parameters

\Drupal\system\MenuInterface $menu:

File

./simple_sitemap.module, line 219
Main module file containing hooks.

Code

function simple_sitemap_menu_delete(MenuInterface $menu) {
  simple_sitemap_delete_bundle_config('menu_link_content', $menu
    ->id());
}