You are here

public function LanguageConfigFactoryOverride::getCacheSuffix in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/language/src/Config/LanguageConfigFactoryOverride.php \Drupal\language\Config\LanguageConfigFactoryOverride::getCacheSuffix()
  2. 9 core/modules/language/src/Config/LanguageConfigFactoryOverride.php \Drupal\language\Config\LanguageConfigFactoryOverride::getCacheSuffix()

The string to append to the configuration static cache name.

Return value

string A string to append to the configuration static cache name.

Overrides ConfigFactoryOverrideInterface::getCacheSuffix

File

core/modules/language/src/Config/LanguageConfigFactoryOverride.php, line 127

Class

LanguageConfigFactoryOverride
Provides language overrides for the configuration factory.

Namespace

Drupal\language\Config

Code

public function getCacheSuffix() {
  return $this->language ? $this->language
    ->getId() : NULL;
}