function minisite_uninstall in Mini site 8
Implements hook_uninstall().
File
- ./
minisite.install, line 17 - Contains install and update functions for Minisite.
Code
function minisite_uninstall() {
// Remove the minisite directory and generated files.
if (file_exists(Minisite::getCommonArchiveDir())) {
\Drupal::service('file_system')
->deleteRecursive(Minisite::getCommonArchiveDir());
}
if (file_exists(Minisite::getCommonAssetDir())) {
\Drupal::service('file_system')
->deleteRecursive(Minisite::getCommonAssetDir());
}
}