protected function ConfigFactory::createConfigObject in Domain Access 8
Creates a configuration object.
Parameters
string $name: Configuration object name.
bool $immutable: Determines whether a mutable or immutable config object is returned.
Return value
\Drupal\Core\Config\Config|\Drupal\Core\Config\ImmutableConfig The configuration object.
Overrides ConfigFactory::createConfigObject
1 call to ConfigFactory::createConfigObject()
- ConfigFactory::doGet in domain_config_ui/
src/ Config/ ConfigFactory.php  - Returns a configuration object for a given name.
 
File
- domain_config_ui/
src/ Config/ ConfigFactory.php, line 43  
Class
- ConfigFactory
 - Extends core ConfigFactory class to save domain specific configuration.
 
Namespace
Drupal\domain_config_ui\ConfigCode
protected function createConfigObject($name, $immutable) {
  if (!$immutable) {
    $config = new Config($name, $this->storage, $this->eventDispatcher, $this->typedConfigManager);
    // Pass the UI manager to the Config object.
    $config
      ->setDomainConfigUiManager($this->domainConfigUIManager);
    return $config;
  }
  return parent::createConfigObject($name, $immutable);
}