public function ConfigCollector::addInstallableConfig in Configuration Provider 8.2
Adds installable configuration from all provider plugins.
Parameters
\Drupal\Core\Extension\Extension[] $extensions: (Optional) An associative array of Extension objects, keyed by extension name. If provided, data loaded will be limited to these extensions.
Overrides ConfigCollectorInterface::addInstallableConfig
File
- src/
Plugin/ ConfigCollector.php, line 109
Class
- ConfigCollector
- Class for invoking configuration providers..
Namespace
Drupal\config_provider\PluginCode
public function addInstallableConfig(array $extensions = []) {
// Start with an empty storage.
$this->providerStorage
->deleteAll();
foreach ($this->providerStorage
->getAllCollectionNames() as $collection) {
$provider_collection = $this->providerStorage
->createCollection($collection);
$provider_collection
->deleteAll();
}
/* @var \Drupal\config_provider\Plugin\ConfigProviderInterface[] $providers */
$providers = $this
->getConfigProviders();
foreach ($providers as $provider) {
$provider
->addInstallableConfig($extensions);
}
}