function AutoloadingStorage::write

Same name and namespace in other branches
  1. main core/lib/Drupal/Core/Config/AutoloadingStorage.php \Drupal\Core\Config\AutoloadingStorage::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.

Overrides StorageInterface::write

File

core/lib/Drupal/Core/Config/AutoloadingStorage.php, line 83

Class

AutoloadingStorage
Defines the autoloading storage.

Namespace

Drupal\Core\Config

Code

public function write($name, array $data) : bool {
  return $this->storage
    ->write($name, $data);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.