private function Foo::getFooConfig in Configuration Provider 8.2
Helper to fetch config items from config/foo folders.
Parameters
array $extensions: Extensions to consider when listing available config. Empty array for all extensions.
Return value
array Associative array with config items in config/foo folder(s), index by config file names.
2 calls to Foo::getFooConfig()
- Foo::addConfigToCreate in tests/
modules/ config_provider_multi_providers_test/ src/ Plugin/ ConfigProvider/ Foo.php - Adds configuration to be installed.
- Foo::addInstallableConfig in tests/
modules/ config_provider_multi_providers_test/ src/ Plugin/ ConfigProvider/ Foo.php - Adds configuration that is available to be installed or updated.
File
- tests/
modules/ config_provider_multi_providers_test/ src/ Plugin/ ConfigProvider/ Foo.php, line 53
Class
- Foo
- Class for providing configuration from an 'foo' directory.
Namespace
Drupal\config_provider_foo_provider_test\Plugin\ConfigProviderCode
private function getFooConfig(array $extensions = []) : array {
$storage = $this
->getExtensionInstallStorage(static::ID);
$config_names = $this
->listConfig($storage, $extensions);
return $storage
->readMultiple($config_names);
}