public function DrupalUtils::beforeRestore in Backup and Migrate 5.0.x
Perform actions before restoring the backup.
This used to perform a file size check but it occurred *after* the file was uploaded and uncompressed, which was a complete waste of time.
@todo Remove this.
Parameters
\Drupal\backup_migrate\Core\File\BackupFileReadableInterface $file:
Return value
\Drupal\backup_migrate\Core\File\BackupFileReadableInterface
File
- src/
Drupal/ Filter/ DrupalUtils.php, line 103
Class
- DrupalUtils
- @package Drupal\backup_migrate\Drupal\Filter
Namespace
Drupal\backup_migrate\Drupal\FilterCode
public function beforeRestore(BackupFileReadableInterface $file) {
return $file;
}