class ColorConfigCacheInvalidator implements EventSubscriberInterface (View source)

A subscriber invalidating cache tags when color config objects are saved.

Properties

protected CacheTagsInvalidatorInterface $cacheTagsInvalidator

The cache tags invalidator.

Methods

__construct(CacheTagsInvalidatorInterface $cache_tags_invalidator)

Constructs a ColorConfigCacheInvalidator object.

onChange(ConfigCrudEvent $event)

Invalidate cache tags when a color theme config object changes.

static 
getSubscribedEvents()

{@inheritdoc}

Details

__construct(CacheTagsInvalidatorInterface $cache_tags_invalidator)

Constructs a ColorConfigCacheInvalidator object.

Parameters

CacheTagsInvalidatorInterface $cache_tags_invalidator

The cache tags invalidator.

onChange(ConfigCrudEvent $event)

Invalidate cache tags when a color theme config object changes.

Parameters

ConfigCrudEvent $event

The Event to process.

static getSubscribedEvents()

{@inheritdoc}