You are here

function context_active_trail_context_delete in Context Active Trail 8

Same name and namespace in other branches
  1. 8.2 context_active_trail.module \context_active_trail_context_delete()

Implements hook_context_delete().

File

./context_active_trail.module, line 33
Hook implementations for context_active_trail.

Code

function context_active_trail_context_delete(ContextInterface $entity) {
  if ($entity
    ->hasReaction('active_trail')) {
    Cache::invalidateTags([
      CACHE_TAG_BREADCRUMBS,
    ]);
  }
}