You are here

public function StorageInterface::write in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/StorageInterface.php \Drupal\Core\Config\StorageInterface::write()
  2. 9 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.

1 method overrides StorageInterface::write()
MemoryStorage::write in core/lib/Drupal/Core/Config/MemoryStorage.php
Writes configuration data to the storage.

File

core/lib/Drupal/Core/Config/StorageInterface.php, line 67

Class

StorageInterface
Defines an interface for configuration storage.

Namespace

Drupal\Core\Config

Code

public function write($name, array $data);