function DatabaseStorageTest::read
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php \Drupal\KernelTests\Core\Config\Storage\DatabaseStorageTest::read()
- 10 core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php \Drupal\KernelTests\Core\Config\Storage\DatabaseStorageTest::read()
- 11.x core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php \Drupal\KernelTests\Core\Config\Storage\DatabaseStorageTest::read()
Overrides ConfigStorageTestBase::read
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Config/ Storage/ DatabaseStorageTest.php, line 28
Class
- DatabaseStorageTest
- Tests DatabaseStorage operations.
Namespace
Drupal\KernelTests\Core\Config\StorageCode
protected function read($name) {
$data = Database::getConnection()->query('SELECT data FROM {config} WHERE name = :name', [
':name' => $name,
])
->fetchField();
return unserialize($data);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.