function EventManager::invalidateEventTypes in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/EventManager.php \Drupal\rng\EventManager::invalidateEventTypes()
- 3.x src/EventManager.php \Drupal\rng\EventManager::invalidateEventTypes()
Invalidate cache for events types.
Overrides EventManagerInterface::invalidateEventTypes
File
- src/
EventManager.php, line 114
Class
- EventManager
- Event manager for RNG.
Namespace
Drupal\rngCode
function invalidateEventTypes() {
$event_types = $this
->getEventTypes();
foreach ($event_types as $i => $bundles) {
foreach ($bundles as $b => $event_type) {
/** @var \Drupal\rng\EventTypeInterface $event_type */
$this
->invalidateEventType($event_type);
}
}
}