function FileStorageTest::read

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Config/Storage/FileStorageTest.php \Drupal\KernelTests\Core\Config\Storage\FileStorageTest::read()
  2. 8.9.x core/tests/Drupal/KernelTests/Core/Config/Storage/FileStorageTest.php \Drupal\KernelTests\Core\Config\Storage\FileStorageTest::read()
  3. 10 core/tests/Drupal/KernelTests/Core/Config/Storage/FileStorageTest.php \Drupal\KernelTests\Core\Config\Storage\FileStorageTest::read()

Overrides ConfigStorageTestBase::read

File

core/tests/Drupal/KernelTests/Core/Config/Storage/FileStorageTest.php, line 41

Class

FileStorageTest
Tests FileStorage operations.

Namespace

Drupal\KernelTests\Core\Config\Storage

Code

protected function read($name) {
    $data = file_get_contents($this->storage
        ->getFilePath($name));
    return Yaml::decode($data);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.