function xmlsitemap_custom_uninstall in XML sitemap 8
Same name and namespace in other branches
- 6.2 xmlsitemap_custom/xmlsitemap_custom.install \xmlsitemap_custom_uninstall()
 - 7.2 xmlsitemap_custom/xmlsitemap_custom.install \xmlsitemap_custom_uninstall()
 - 2.x xmlsitemap_custom/xmlsitemap_custom.install \xmlsitemap_custom_uninstall()
 
Implements hook_uninstall().
File
- xmlsitemap_custom/
xmlsitemap_custom.install, line 11  - Install and uninstall schema and functions for the xmlsitemap_custom module.
 
Code
function xmlsitemap_custom_uninstall() {
  \Drupal::moduleHandler()
    ->load('xmlsitemap');
  \Drupal::service('xmlsitemap.link_storage')
    ->deleteMultiple([
    'type' => 'custom',
  ]);
}