if ($config_name === 'system.site'
) { $this->cacheTagsInvalidator->
invalidateTags(['route_match', 'rendered'
]);
} // Theme configuration and global theme settings.
if (in_array($config_name,
['system.theme', 'system.theme.global'
], TRUE
)) { $this->cacheTagsInvalidator->
invalidateTags(['rendered'
]);
} // Library and template overrides potentially change for the default theme
// when the admin theme is changed.
if ($config_name === 'system.theme' &&
$event->
isChanged('admin'
)) { $this->cacheTagsInvalidator->
invalidateTags(['library_info', 'theme_registry'
]);
} // Theme-specific settings, check if this matches a theme settings
// configuration object (THEME_NAME.settings), in that case, clear the
// rendered cache tag.
if (preg_match('/^([^\.]*)\.settings$/',
$config_name,
$matches)) { if ($this->themeHandler->
themeExists($matches[1
])) { $this->cacheTagsInvalidator->
invalidateTags(['rendered'
]);
} } }