Skip to content
Snippets Groups Projects
Commit 5e7ea584 authored by George Fernando Camilo's avatar George Fernando Camilo Committed by Ryan Jacobs
Browse files

Issue #2836285 by gfcamilo, tstoeckler: Error when uninstalling Libraries API...

Issue #2836285 by gfcamilo, tstoeckler: Error when uninstalling Libraries API if there are library definitions
parent dcd717dc
No related branches found
No related tags found
No related merge requests found
......@@ -23,8 +23,6 @@ function libraries_install() {
*/
function libraries_uninstall() {
if (is_dir('public://library-definitions')) {
/** @var \Drupal\Core\File\FileSystemInterface $file_system */
$file_system = \Drupal::service('file_system');
$file_system->rmdir('public://library-definitions');
file_unmanaged_delete_recursive('public://library-definitions');
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment