You are here

function cms_content_sync_health_uninstall in CMS Content Sync 2.1.x

Same name and namespace in other branches
  1. 8 modules/cms_content_sync_health/cms_content_sync_health.install \cms_content_sync_health_uninstall()
  2. 2.0.x modules/cms_content_sync_health/cms_content_sync_health.install \cms_content_sync_health_uninstall()

Implements hook_uninstall().

File

modules/cms_content_sync_health/cms_content_sync_health.install, line 25
Install file for cms_content_sync_health.

Code

function cms_content_sync_health_uninstall() {

  /**
   * @var \Drupal\Core\Config\CachedStorage $config_storage
   */
  $config_storage = Drupal::service('config.storage');

  // For some reason the dependency on the views configuration for the
  // cms_content_sync_health module is not added to the actual configuration
  // during the installation of the module. Because of this the view
  // is not being removed during the uninstall process of the module.
  $config_storage
    ->delete('views.view.content_sync_entity_status');
}