public function ConfigInstaller::installOptionalConfig in Zircon Profile 8
Same name in this branch
- 8 core/lib/Drupal/Core/Config/ConfigInstaller.php \Drupal\Core\Config\ConfigInstaller::installOptionalConfig()
- 8 core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php \Drupal\Core\ProxyClass\Config\ConfigInstaller::installOptionalConfig()
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php \Drupal\Core\ProxyClass\Config\ConfigInstaller::installOptionalConfig()
Installs optional configuration.
Optional configuration is only installed if:
- the configuration does not exist already.
- it's a configuration entity.
- its dependencies can be met.
Parameters
\Drupal\Core\Config\StorageInterface: (optional) The configuration storage to search for optional configuration. If not provided, all enabled extension's optional configuration directories will be searched.
array $dependency: (optional) If set, ensures that the configuration being installed has this dependency. The format is dependency type as the key ('module', 'theme', or 'config') and the dependency name as the value ('book', 'bartik', 'views.view.frontpage').
Overrides ConfigInstallerInterface::installOptionalConfig
File
- core/
lib/ Drupal/ Core/ ProxyClass/ Config/ ConfigInstaller.php, line 85 - Contains \Drupal\Core\ProxyClass\Config\ConfigInstaller.
Class
- ConfigInstaller
- Provides a proxy class for \Drupal\Core\Config\ConfigInstaller.
Namespace
Drupal\Core\ProxyClass\ConfigCode
public function installOptionalConfig(\Drupal\Core\Config\StorageInterface $storage = NULL, $dependency = array()) {
return $this
->lazyLoadItself()
->installOptionalConfig($storage, $dependency);
}