protected function ConfigCollector::initConfigProviderInstance in Configuration Provider 8
Same name and namespace in other branches
- 8.2 src/Plugin/ConfigCollector.php \Drupal\config_provider\Plugin\ConfigCollector::initConfigProviderInstance()
Initializes an instance of the specified configuration provider.
Parameters
string $id: The string identifier of the configuration provider.
1 call to ConfigCollector::initConfigProviderInstance()
- ConfigCollector::getConfigProviders in src/
Plugin/ ConfigCollector.php - Gets all configuration provider plugins.
File
- src/
Plugin/ ConfigCollector.php, line 116
Class
- ConfigCollector
- Class for invoking configuration providers..
Namespace
Drupal\config_provider\PluginCode
protected function initConfigProviderInstance($id) {
if (!isset($this->configProviders[$id])) {
$instance = $this->configProviderManager
->createInstance($id, []);
$instance
->setConfigFactory($this->configFactory);
$instance
->setActiveStorages($this->activeStorage);
$instance
->setConfigManager($this->configManager);
$this->configProviders[$id] = $instance;
}
}