You are here

public function StorageReplaceDataWrapper::createCollection in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/config/src/StorageReplaceDataWrapper.php \Drupal\config\StorageReplaceDataWrapper::createCollection()
  2. 9 core/modules/config/src/StorageReplaceDataWrapper.php \Drupal\config\StorageReplaceDataWrapper::createCollection()

File

core/modules/config/src/StorageReplaceDataWrapper.php, line 167

Class

StorageReplaceDataWrapper
Wraps a configuration storage to allow replacing specific configuration data.

Namespace

Drupal\config

Code

public function createCollection($collection) {
  return new static($this->storage
    ->createCollection($collection), $collection);
}