function ConfigInstallerInterface::installCollectionDefaultConfig

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/ConfigInstallerInterface.php \Drupal\Core\Config\ConfigInstallerInterface::installCollectionDefaultConfig()
  2. 10 core/lib/Drupal/Core/Config/ConfigInstallerInterface.php \Drupal\Core\Config\ConfigInstallerInterface::installCollectionDefaultConfig()
  3. 11.x core/lib/Drupal/Core/Config/ConfigInstallerInterface.php \Drupal\Core\Config\ConfigInstallerInterface::installCollectionDefaultConfig()

Installs all default configuration in the specified collection.

The function is useful if the site needs to respond to an event that has just created another collection and we need to check all the installed extensions for any matching configuration. For example, if a language has just been created.

Parameters

string $collection: The configuration collection.

2 methods override ConfigInstallerInterface::installCollectionDefaultConfig()
ConfigInstaller::installCollectionDefaultConfig in core/lib/Drupal/Core/ProxyClass/Config/ConfigInstaller.php
Installs all default configuration in the specified collection.
ConfigInstaller::installCollectionDefaultConfig in core/lib/Drupal/Core/Config/ConfigInstaller.php
Installs all default configuration in the specified collection.

File

core/lib/Drupal/Core/Config/ConfigInstallerInterface.php, line 67

Class

ConfigInstallerInterface
Interface for classes that install config.

Namespace

Drupal\Core\Config

Code

public function installCollectionDefaultConfig($collection);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.