You are here

public function ConfigProviderInterface::addInstallableConfig in Configuration Provider 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/ConfigProviderInterface.php \Drupal\config_provider\Plugin\ConfigProviderInterface::addInstallableConfig()

Adds configuration that is available to be installed or updated.

Not intended to be called an install time, this method instead facilitates determining what configuration updates are available.

Implementing plugins should write configuration as appropriate to the $installable_config storage.

Parameters

\Drupal\config_provider\InMemoryStorage $installable_config: A storage for configuration to be added to.

\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.

See also

\Drupal\config_provider\Plugin\ConfigProviderInterface\addConfigToCreate()

2 methods override ConfigProviderInterface::addInstallableConfig()
ConfigProviderInstall::addInstallableConfig in src/Plugin/ConfigProvider/ConfigProviderInstall.php
Adds configuration that is available to be installed or updated.
ConfigProviderOptional::addInstallableConfig in src/Plugin/ConfigProvider/ConfigProviderOptional.php
Adds configuration that is available to be installed or updated.

File

src/Plugin/ConfigProviderInterface.php, line 107

Class

ConfigProviderInterface
Defines an interface for Configuration provider plugins.

Namespace

Drupal\config_provider\Plugin

Code

public function addInstallableConfig(InMemoryStorage $installable_config, array $extensions = []);