public StorageComparer::getSourceStorage($collection = StorageInterface::DEFAULT_COLLECTION)
Gets the configuration source storage.
Parameters
string $collection: (optional) The storage collection to use. Defaults to the default collection.
Return value
\Drupal\Core\Config\StorageInterface Storage object used to read configuration.
Overrides StorageComparerInterface::getSourceStorage
File
- core/lib/Drupal/Core/Config/StorageComparer.php, line 121
Class
- StorageComparer
- Defines a config storage comparer.
Namespace
Drupal\Core\Config
Code
1 2 3 4 5 6 7 8 9 10 11 | public function getSourceStorage( $collection = StorageInterface::DEFAULT_COLLECTION) { if (!isset( $this ->sourceStorages[ $collection ])) { if ( $collection == StorageInterface::DEFAULT_COLLECTION) { $this ->sourceStorages[ $collection ] = $this ->sourceStorage; } else { $this ->sourceStorages[ $collection ] = $this ->sourceStorage->createCollection( $collection ); } } return $this ->sourceStorages[ $collection ]; } |
Please login to continue.