Implements Drupal\Core\Config\StorageInterface::write().
Symfony\Component\Yaml\Exception\DumpException
Drupal\Core\Config\StorageException
Overrides StorageInterface::write
public function write($name, array $data) {
$data = $this
->encode($data);
$status = @file_put_contents($this
->getFilePath($name), $data);
if ($status === FALSE) {
throw new StorageException('Failed to write configuration file: ' . $this
->getFilePath($name));
}
return TRUE;
}