better_statistics.install in Better Statistics 8
Same filename and directory in other branches
Contains better_statistics.install.
File
better_statistics.installView source
<?php
/**
* @file
* Contains better_statistics.install.
*/
/**
* Implements hook_uninstall().
*/
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();
}
}
Functions
Name | Description |
---|---|
better_statistics_uninstall | Implements hook_uninstall(). |