You are here

public function ConfigCacheTag::__construct in Real Name 2.x

Same name and namespace in other branches
  1. 8 src/EventSubscriber/ConfigCacheTag.php \Drupal\realname\EventSubscriber\ConfigCacheTag::__construct()

Constructs a RealnameCacheTag object.

Parameters

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

File

src/EventSubscriber/ConfigCacheTag.php, line 28

Class

ConfigCacheTag
A subscriber invalidating cache tags when realname config objects are saved.

Namespace

Drupal\realname\EventSubscriber

Code

public function __construct(CacheTagsInvalidatorInterface $cache_tags_invalidator) {
  $this->cacheTagsInvalidator = $cache_tags_invalidator;
}