public function ReadableStreamBackupFile::readAll in Backup and Migrate 5.0.x
Read a line from the file.
Return value
string The data read from the file or NULL if the file can't be read.
Overrides BackupFileReadableInterface::readAll
File
- src/
Core/ File/ ReadableStreamBackupFile.php, line 158
Class
- ReadableStreamBackupFile
- Uses a readable PHP stream such as a local file.
Namespace
Drupal\backup_migrate\Core\FileCode
public function readAll() {
if (!$this
->isOpen()) {
$this
->openForRead();
}
$this
->rewind();
return stream_get_contents($this->handle);
}