protected function DatabaseStorage::doWrite in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Config/DatabaseStorage.php \Drupal\Core\Config\DatabaseStorage::doWrite()
Helper method so we can re-try a write.
Parameters
string $name: The config name.
string $data: The config data, already dumped to a string.
Return value
bool
1 call to DatabaseStorage::doWrite()
- DatabaseStorage::write in core/
lib/ Drupal/ Core/ Config/ DatabaseStorage.php - Writes configuration data to the storage.
File
- core/
lib/ Drupal/ Core/ Config/ DatabaseStorage.php, line 150 - Contains \Drupal\Core\Config\DatabaseStorage.
Class
- DatabaseStorage
- Defines the Database storage.
Namespace
Drupal\Core\ConfigCode
protected function doWrite($name, $data) {
$options = array(
'return' => Database::RETURN_AFFECTED,
) + $this->options;
return (bool) $this->connection
->merge($this->table, $options)
->keys(array(
'collection',
'name',
), array(
$this->collection,
$name,
))
->fields(array(
'data' => $data,
))
->execute();
}