You are here

function asset_injector_uninstall in Asset Injector 8.2

Same name and namespace in other branches
  1. 8 asset_injector.install \asset_injector_uninstall()

Implements hook_uninstall().

File

./asset_injector.install, line 31
Contains install and uninstall hooks.

Code

function asset_injector_uninstall() {
  $uri = 'public://asset_injector';
  $directory = \Drupal::service('stream_wrapper_manager')
    ->normalizeUri($uri);
  \Drupal::service('file_system')
    ->deleteRecursive($directory);
}