protected function CachedStorageTest::read in Drupal 8
Same name and namespace in other branches
- 9 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 53
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);
}