function twitter_feed_uninstall in Twitter_Feed 8
Implements hook_uninstall().
Deletes all content and configuration installed by this module.
File
- ./
twitter_feed.install, line 13 - Installation actions for Twitter Feed.
Code
function twitter_feed_uninstall() {
// Delete all of the configuration installed by this module.
$dir = drupal_get_path('module', 'twitter_feed') . '/config/install';
$files = \Drupal::service('file_system')
->scanDirectory($dir, '/.*/');
foreach ($files as $file) {
\Drupal::configFactory()
->getEditable($file->name)
->delete();
}
\Drupal::logger('twitter_feed')
->info(t('Deleted Twitter Feed configuration'), []);
}