A subscriber invalidating cache tags when translating a string.
Hierarchy
- class \Drupal\locale\EventSubscriber\LocaleTranslationCacheTag implements EventSubscriberInterface
File
- core/modules/locale/src/EventSubscriber/LocaleTranslationCacheTag.php, line 12
Namespace
Drupal\locale\EventSubscriber
Members
Name | Modifiers | Type | Description |
---|---|---|---|
LocaleTranslationCacheTag::$cacheTagsInvalidator | protected | property | The cache tags invalidator. |
LocaleTranslationCacheTag::getSubscribedEvents | public static | function | Returns an array of event names this subscriber wants to listen to. Overrides EventSubscriberInterface::getSubscribedEvents |
LocaleTranslationCacheTag::saveTranslation | public | function | Invalidate cache tags whenever a string is translated. |
LocaleTranslationCacheTag::__construct | public | function | Constructs a LocaleTranslationCacheTag object. |
Please login to continue.