You are here

public function ModuleConfigOverrides::getCacheableMetadata in Config override 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/ModuleConfigOverrides.php, line 91
Contains \Drupal\config_override\ModuleConfigOverrides.

Class

ModuleConfigOverrides

Namespace

Drupal\config_override

Code

public function getCacheableMetadata($name) {
  $cache_metadata = new CacheableMetadata();
  $cache_metadata
    ->addCacheTags([
    'extensions',
  ]);
  return $cache_metadata;
}