<?php

/**
 * @file
 * Provides installations/uninstall method.
 */

/**
 * Implements hook_uninstall().
 */
function nodehive_core_space_dashboard_uninstall() {
  // Delete the view this modules ships with.
  $view_name = "nodehive_space_content";
  $view_config = \Drupal::service('config.factory')->getEditable('views.view.' . $view_name);
  if ($view_config) {
    $view_config->delete();
  }
}
