You are here

public function SourceInterface::importFromFile in Backup and Migrate 5.0.x

Import to this source from the given backup file.

This is the main restore function for this source.

Parameters

\Drupal\backup_migrate\Core\File\BackupFileReadableInterface $file: The file to read the backup from. It will not be opened for reading.

2 methods override SourceInterface::importFromFile()
FileDirectorySource::importFromFile in src/Core/Source/FileDirectorySource.php
Import to this source from the given backup file.
MySQLiSource::importFromFile in src/Core/Source/MySQLiSource.php
Import to this source from the given backup file.

File

src/Core/Source/SourceInterface.php, line 31

Class

SourceInterface
Provides an interface defining a backup source.

Namespace

Drupal\backup_migrate\Core\Source

Code

public function importFromFile(BackupFileReadableInterface $file);