You are here

function data_policy_data_policy_delete in Data Policy 8

Implements hook_ENTITY_TYPE_delete().

File

./data_policy.module, line 186
data_policy.module

Code

function data_policy_data_policy_delete(EntityInterface $entity) {
  \Drupal::configFactory()
    ->getEditable('data_policy.data_policy')
    ->set('entity_id', 0)
    ->save();
}