LocaleTranslationCacheTag::__construct

public LocaleTranslationCacheTag::__construct(CacheTagsInvalidatorInterface $cache_tags_invalidator)

Constructs a LocaleTranslationCacheTag object.

Parameters

\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_tags_invalidator: The cache tags invalidator.

File

core/modules/locale/src/EventSubscriber/LocaleTranslationCacheTag.php, line 27

Class

LocaleTranslationCacheTag
A subscriber invalidating cache tags when translating a string.

Namespace

Drupal\locale\EventSubscriber

Code

public function __construct(CacheTagsInvalidatorInterface $cache_tags_invalidator) {
  $this->cacheTagsInvalidator = $cache_tags_invalidator;
}
doc_Drupal
2016-10-29 09:24:12
Comments
Leave a Comment

Please login to continue.