function RecipeExtensionConfigStorage::__construct
Same name in other branches
- 11.x core/lib/Drupal/Core/Recipe/RecipeExtensionConfigStorage.php \Drupal\Core\Recipe\RecipeExtensionConfigStorage::__construct()
Parameters
string $extensionPath: The path extension to read configuration from
array $configNames: The list of config to read from the extension. An empty array means all configuration.
string $collection: (optional) The collection to store configuration in. Defaults to the default collection.
File
-
core/
lib/ Drupal/ Core/ Recipe/ RecipeExtensionConfigStorage.php, line 30
Class
- RecipeExtensionConfigStorage
- Allows the recipe to select configuration from the module.
Namespace
Drupal\Core\RecipeCode
public function __construct(string $extensionPath, array $configNames, string $collection = StorageInterface::DEFAULT_COLLECTION) {
$this->storage = new RecipeConfigStorageWrapper(new FileStorage($this->extensionPath . '/config/install', $this->collection), new FileStorage($this->extensionPath . '/config/optional', $this->collection), $collection);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.