Commit ccf70901 authored by Ines WALLON's avatar Ines WALLON
Browse files

fix: aaa

parent 4540d01f
Pipeline #743 failed
......@@ -9,7 +9,8 @@
* Implements hook_unistall().
*/
function my_paragraphs_uninstall() {
$files = file_scan_directory(drupal_get_path('module', 'my_paragraphs') . "/config/install", "/.*\.yml/");
$files = \Drupal::service('file_system')->scanDirectory(drupal_get_path('module', 'my_paragraphs') . "/config/install", "/.*\.yml/");
foreach ($files as $file) {
\Drupal::configFactory()->getEditable($file->name)->delete();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment