function data_policy_uninstall in Data Policy 8
Implements hook_uninstall().
File
- ./
data_policy.install, line 28 - Install, update and uninstall functions for the data_policy module.
Code
function data_policy_uninstall() {
/** @var \Drupal\data_policy\Entity\DataPolicyInterface $data_policy */
foreach (DataPolicy::loadMultiple() as $data_policy) {
$data_policy
->delete();
}
\Drupal::configFactory()
->getEditable('data_policy.data_policy')
->delete();
}