You are here

function views_revisions_uninstall in Config Entity Revisions 8

Same name and namespace in other branches
  1. 1.x modules/views_revisions/views_revisions.install \views_revisions_uninstall()

Implements hook_uninstall().

File

modules/views_revisions/views_revisions.install, line 23

Code

function views_revisions_uninstall() {
  $entityTypeManager = \Drupal::entityTypeManager();
  $cert_storage = $entityTypeManager
    ->getStorage('config_entity_revisions_type');
  $entity = $cert_storage
    ->load('views_revisions');
  $cert_storage
    ->delete([
    $entity,
  ]);
}