You are here

function depcalc_entity_delete in Dependency Calculation 8

Implements hook_entity_delete().

File

./depcalc.module, line 20

Code

function depcalc_entity_delete(EntityInterface $entity) {
  if ($uuid = $entity
    ->uuid()) {
    $backend = \Drupal::cache('depcalc');
    $backend
      ->delete($uuid);
    Cache::invalidateTags([
      $uuid,
    ]);
  }
}