You are here

protected function DomainConfigOverrider::getDomainConfigName in Domain Access 8

Get configuration name for this hostname.

It will be the same name with a prefix depending on domain and language:

domain . config . DOMAIN_ID . LANGCODE;

Parameters

string $name: The name of the config object.

\Drupal\domain\DomainInterface $domain: The domain object.

Return value

array The domain-language, and domain-specific config names.

1 call to DomainConfigOverrider::getDomainConfigName()
DomainConfigOverrider::loadOverrides in domain_config/src/DomainConfigOverrider.php
Returns config overrides.

File

domain_config/src/DomainConfigOverrider.php, line 177

Class

DomainConfigOverrider
Domain-specific config overrides.

Namespace

Drupal\domain_config

Code

protected function getDomainConfigName($name, DomainInterface $domain) {
  return [
    'langcode' => 'domain.config.' . $domain
      ->id() . '.' . $this->language
      ->getId() . '.' . $name,
    'domain' => 'domain.config.' . $domain
      ->id() . '.' . $name,
  ];
}