function ConfigBase::getCacheTags

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

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.