function webform_revisions_uninstall in Config Entity Revisions 1.x
Same name and namespace in other branches
- 8.2 modules/webform_revisions/webform_revisions.install \webform_revisions_uninstall()
- 8 modules/webform_revisions/webform_revisions.install \webform_revisions_uninstall()
Implements hook_uninstall().
File
- modules/
webform_revisions/ webform_revisions.install, line 23
Code
function webform_revisions_uninstall() {
$entityTypeManager = \Drupal::entityTypeManager();
$cert_storage = $entityTypeManager
->getStorage('config_entity_revisions_type');
$entity = $cert_storage
->load('webform_revisions');
$cert_storage
->delete([
$entity,
]);
}