You are here

public function SourceStorage::write in Configuration installer 8

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.

Overrides StorageInterface::write

File

src/Storage/SourceStorage.php, line 77

Class

SourceStorage
Wraps the sync storage so the config_installer can make modifications.

Namespace

Drupal\config_installer\Storage

Code

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