You are here

public function BackupFileWritableInterface::writeAll in Backup and Migrate 5.0.x

Open the file, write the given contents and close it.

Used for small amounts of data that can fit in memory.

Parameters

string $data: The contents to write.

1 method overrides BackupFileWritableInterface::writeAll()
WritableStreamBackupFile::writeAll in src/Core/File/WritableStreamBackupFile.php
Open the file, writes the given contents and closes it.

File

src/Core/File/BackupFileWritableInterface.php, line 34

Class

BackupFileWritableInterface
A service to provision temp files in the correct place for the environment.

Namespace

Drupal\backup_migrate\Core\File

Code

public function writeAll($data);