You are here

function panopoly_demo_uninstall in Panopoly Demo 8.2

Implements hook_uninstall().

File

./panopoly_demo.install, line 32
Install and update hooks for Panopoly Demo.

Code

function panopoly_demo_uninstall() {
  $migration_ids = [
    'panopoly_demo_node',
    'panopoly_demo_menu',
  ];

  /** @var \Drupal\panopoly_core\MigrateHelper $migrate_helper */
  $migrate_helper = \Drupal::service('panopoly_core.migrate_helper');
  $migrate_helper
    ->rollback($migration_ids);

  // Reset the homepage.
  _panopoly_demo_set_front_page('/node');
}