protected function CachedStorageTest::read in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Config/Storage/CachedStorageTest.php \Drupal\KernelTests\Core\Config\Storage\CachedStorageTest::read()
Overrides ConfigStorageTestBase::read
File
- core/
tests/ Drupal/ KernelTests/ Core/ Config/ Storage/ CachedStorageTest.php, line 51
Class
- CachedStorageTest
- Tests CachedStorage operations.
Namespace
Drupal\KernelTests\Core\Config\StorageCode
protected function read($name) {
$data = $this->cache
->get($name);
// Cache misses fall through to the underlying storage.
return $data ? $data->data : $this->fileStorage
->read($name);
}