You are here

function responsive_favicons_uninstall in Responsive Favicons 8

Same name and namespace in other branches
  1. 7 responsive_favicons.install \responsive_favicons_uninstall()

Implements hook_uninstall().

File

./responsive_favicons.install, line 53
Responsive favicons install file.

Code

function responsive_favicons_uninstall() {

  // Remove favicon files
  $config = \Drupal::config('responsive_favicons.settings');
  if (!empty($config
    ->get('path'))) {
    \Drupal::service('file_system')
      ->deleteRecursive('public://' . $config
      ->get('path'));
  }
}