function RecipeConfigStorageWrapper::createCollection

Same name in other branches
  1. 10 core/lib/Drupal/Core/Recipe/RecipeConfigStorageWrapper.php \Drupal\Core\Recipe\RecipeConfigStorageWrapper::createCollection()

Overrides StorageInterface::createCollection

File

core/lib/Drupal/Core/Recipe/RecipeConfigStorageWrapper.php, line 140

Class

RecipeConfigStorageWrapper
Merges two storages together.

Namespace

Drupal\Core\Recipe

Code

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

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