function AutoloadingStorage::createCollection

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Config/AutoloadingStorage.php \Drupal\Core\Config\AutoloadingStorage::createCollection()

File

core/lib/Drupal/Core/Config/AutoloadingStorage.php, line 141

Class

AutoloadingStorage
Defines the autoloading storage.

Namespace

Drupal\Core\Config

Code

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

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