public function ErrorLevelConfigOverride::getCacheableMetadata in Error Level Permission 8
Gets the cacheability metadata associated with the config factory override.
Parameters
string $name: The name of the configuration override to get metadata for.
Return value
\Drupal\Core\Cache\CacheableMetadata A cacheable metadata object.
Overrides ConfigFactoryOverrideInterface::getCacheableMetadata
File
- src/
ErrorLevelConfigOverride.php, line 61
Class
Namespace
Drupal\errorlevelpermissionCode
public function getCacheableMetadata($name) {
$cacheableMetadata = new CacheableMetadata();
$cacheableMetadata
->addCacheContexts([
'user.permissions',
]);
return $cacheableMetadata;
}