public function ConfigIgnoreEventSubscriber::invalidateTags in Config Ignore 8.3
Marks cache items with any of the specified tags as invalid.
Parameters
string[] $tags: The list of tags for which to invalidate cache items.
Overrides CacheTagsInvalidatorInterface::invalidateTags
File
- src/
EventSubscriber/ ConfigIgnoreEventSubscriber.php, line 91
Class
- ConfigIgnoreEventSubscriber
- Makes the import/export aware of ignored configs.
Namespace
Drupal\config_ignore\EventSubscriberCode
public function invalidateTags(array $tags) {
// Invalidate static cache if config changes.
if (in_array('config:config_ignore.settings', $tags, TRUE)) {
$this->ignoredConfig = NULL;
}
}