You are here

function EventManager::invalidateEventType in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/EventManager.php \Drupal\rng\EventManager::invalidateEventType()
  2. 3.x src/EventManager.php \Drupal\rng\EventManager::invalidateEventType()

Invalidate cache for an event type.

Parameters

\Drupal\rng\EventTypeInterface $event_type: An event type.

Overrides EventManagerInterface::invalidateEventType

1 call to EventManager::invalidateEventType()
EventManager::invalidateEventTypes in src/EventManager.php
Invalidate cache for events types.

File

src/EventManager.php, line 127

Class

EventManager
Event manager for RNG.

Namespace

Drupal\rng

Code

function invalidateEventType(EventTypeInterface $event_type) {
  Cache::invalidateTags($event_type
    ->getCacheTags());
}