Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Config/ConfigBase.php \Drupal\Core\Config\ConfigBase::getCacheTags()
  2. 9 core/lib/Drupal/Core/Config/ConfigBase.php \Drupal\Core\Config\ConfigBase::getCacheTags()

The cache tags associated with this object.

When this object is modified, these cache tags will be invalidated.

Return value

string[] A set of cache tags.

Overrides CacheableDependencyTrait::getCacheTags

4 calls to ConfigBase::getCacheTags()
Config::delete in core/lib/Drupal/Core/Config/Config.php
Deletes the configuration object.
Config::save in core/lib/Drupal/Core/Config/Config.php
Saves the configuration object.
LanguageConfigOverride::delete in core/modules/language/src/Config/LanguageConfigOverride.php
Deletes the configuration object.
LanguageConfigOverride::save in core/modules/language/src/Config/LanguageConfigOverride.php
Saves the configuration object.
1 method overrides ConfigBase::getCacheTags()
ThemeSettings::getCacheTags in core/lib/Drupal/Core/Theme/ThemeSettings.php
The cache tags associated with this object.

File

core/lib/Drupal/Core/Config/ConfigBase.php, line 262

Class

ConfigBase
Provides a base class for configuration objects with get/set support.

Namespace

Drupal\Core\Config

Code

public function getCacheTags() {
  return Cache::mergeTags([
    'config:' . $this->name,
  ], $this->cacheTags);
}