You are here

protected function CachedStorageTest::read in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/config/src/Tests/Storage/CachedStorageTest.php \Drupal\config\Tests\Storage\CachedStorageTest::read()

Overrides ConfigStorageTestBase::read

File

core/modules/config/src/Tests/Storage/CachedStorageTest.php, line 58
Contains \Drupal\config\Tests\Storage\CachedStorageTest.

Class

CachedStorageTest
Tests CachedStorage operations.

Namespace

Drupal\config\Tests\Storage

Code

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);
}