public function WritableStreamBackupFile::writeAll in Backup and Migrate 5.0.x
Open the file, writes the given contents and closes it.
Used for small amounts of data that can fit in memory.
Parameters
$data:
Overrides BackupFileWritableInterface::writeAll
File
- src/
Core/ File/ WritableStreamBackupFile.php, line 94
Class
- WritableStreamBackupFile
- A file object which represents an existing PHP stream with read/write.
Namespace
Drupal\backup_migrate\Core\FileCode
public function writeAll($data) {
$this
->openForWrite();
$this
->write($data);
$this
->close();
}