function better_statistics_uninstall in Better Statistics 8
Same name and namespace in other branches
- 6 better_statistics.install \better_statistics_uninstall()
- 7 better_statistics.install \better_statistics_uninstall()
Implements hook_uninstall().
File
- ./
better_statistics.install, line 11 - Contains better_statistics.install.
Code
function better_statistics_uninstall() {
$configs = [
'block.block.views_block__most_viewed_articles_most_viewed_articles_block',
'block.block.views_block__entity_interactions_top_content_contributors_block',
'views.view.most_viewed_articles',
'views.view.entity_interactions',
'views.view.user_contributions',
];
foreach ($configs as $config) {
Drupal::configFactory()
->getEditable($config)
->delete();
}
}