function ManagedStorageTest::getStorage
Get the config storage.
Return value
\Drupal\Core\Config\StorageInterface The config storage.
Overrides StorageManagerInterface::getStorage
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Config/ Storage/ ManagedStorageTest.php, line 21
Class
- ManagedStorageTest
- Tests ManagedStorage operations.
Namespace
Drupal\KernelTests\Core\Config\StorageCode
public function getStorage() {
// We return a new storage every time to make sure the managed storage
// only calls this once and retains the configuration by itself.
return new MemoryStorage();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.