You are here

function context_active_trail_context_update in Context Active Trail 8

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

Implements hook_context_update().

File

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

Code

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