protected function DatabaseStorageTest::read in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php \Drupal\KernelTests\Core\Config\Storage\DatabaseStorageTest::read()
- 9 core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php \Drupal\KernelTests\Core\Config\Storage\DatabaseStorageTest::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()
->select('config', 'c')
->fields('c', [
'data',
])
->condition('name', $name)
->execute()
->fetchField();
return unserialize($data);
}