function StorageInterface::write
Same name in other branches
- 9 core/lib/Drupal/Core/Config/StorageInterface.php \Drupal\Core\Config\StorageInterface::write()
- 8.9.x core/lib/Drupal/Core/Config/StorageInterface.php \Drupal\Core\Config\StorageInterface::write()
- 10 core/lib/Drupal/Core/Config/StorageInterface.php \Drupal\Core\Config\StorageInterface::write()
Writes configuration data to the storage.
Parameters
string $name: The name of a configuration object to save.
array $data: The configuration data to write.
Return value
bool TRUE on success, FALSE in case of an error.
Throws
\Drupal\Core\Config\StorageException If the back-end storage does not exist and cannot be created.
12 methods override StorageInterface::write()
- CachedStorage::write in core/
lib/ Drupal/ Core/ Config/ CachedStorage.php - Writes configuration data to the storage.
- CheckpointStorage::write in core/
lib/ Drupal/ Core/ Config/ Checkpoint/ CheckpointStorage.php - Writes configuration data to the storage.
- DatabaseStorage::write in core/
lib/ Drupal/ Core/ Config/ DatabaseStorage.php - Writes configuration data to the storage.
- FileStorage::write in core/
lib/ Drupal/ Core/ Config/ FileStorage.php - Writes configuration data to the storage.
- ManagedStorage::write in core/
lib/ Drupal/ Core/ Config/ ManagedStorage.php - Writes configuration data to the storage.
File
-
core/
lib/ Drupal/ Core/ Config/ StorageInterface.php, line 72
Class
- StorageInterface
- Defines an interface for configuration storage.
Namespace
Drupal\Core\ConfigCode
public function write($name, array $data);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.