public function DomainConfigUIManager::getSelectedConfigName in Domain Access 8
Get selected config name.
Parameters
string $name: The config name.
bool $omit_language: A flag to indicate if the language-sensitive config should be loaded.
Return value
string A config object name.
Overrides DomainConfigUIManagerInterface::getSelectedConfigName
File
- domain_config_ui/
src/ DomainConfigUIManager.php, line 41
Class
- DomainConfigUIManager
- Domain Config UI manager.
Namespace
Drupal\domain_config_uiCode
public function getSelectedConfigName($name, $omit_language = FALSE) {
if ($domain_id = $this
->getSelectedDomainId()) {
$prefix = "domain.config.{$domain_id}.";
if (!$omit_language && ($langcode = $this
->getSelectedLanguageId())) {
$prefix .= "{$langcode}.";
}
return $prefix . $name;
}
return $name;
}