public function ConfigCollector::getInstallableConfig in Configuration Provider 8
Gets installable configuration from all provider plugins.
Using the InMemoryStorage permits implementing plugins to add configuration to collections other than the default by calling ::writeToCollection().
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.
Return value
\Drupal\config_provider\InMemoryStorage A storage with the available configuration.
Overrides ConfigCollectorInterface::getInstallableConfig
File
- src/
Plugin/ ConfigCollector.php, line 96
Class
- ConfigCollector
- Class for invoking configuration providers..
Namespace
Drupal\config_provider\PluginCode
public function getInstallableConfig(array $extensions = []) {
// Start with an empty storage.
$this->providerStorage
->deleteAll();
/* @var \Drupal\config_provider\Plugin\ConfigProviderInterface[] $providers */
$providers = $this
->getConfigProviders();
foreach ($providers as $provider) {
$provider
->addInstallableConfig($this->providerStorage, $extensions);
}
return $this->providerStorage;
}