v1/web/modules/contrib/xmlsitemap/xmlsitemap_custom/xmlsitemap_custom.install

15 lines
321 B
PHP

<?php
/**
* @file
* Install and uninstall schema and functions for the xmlsitemap_custom module.
*/
/**
* Implements hook_uninstall().
*/
function xmlsitemap_custom_uninstall() {
\Drupal::moduleHandler()->load('xmlsitemap');
\Drupal::service('xmlsitemap.link_storage')->deleteMultiple(['type' => 'custom']);
}