You are here

public function DomainConfigOverrider::getCacheSuffix in Domain Access 8

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

domain_config/src/DomainConfigOverrider.php, line 187

Class

DomainConfigOverrider
Domain-specific config overrides.

Namespace

Drupal\domain_config

Code

public function getCacheSuffix() {
  $suffix = $this->domain ? $this->domain
    ->id() : '';
  $suffix .= $this->language ? $this->language
    ->getId() : '';
  return $suffix ? $suffix : NULL;
}