You are here

public function TempFileManagerInterface::pushExt in Backup and Migrate 5.0.x

Return a new file based on the passed in file with the given file ext.

This should maintain the metadata of the file passed in with the new file extension added after the old one.

For example: xxx.mysql would become xxx.mysql.gz.

Parameters

\Drupal\backup_migrate\Core\File\BackupFileInterface $file: The file to add the extension to.

$ext: The new file extension.

Return value

\Drupal\backup_migrate\Core\File\BackupFileWritableInterface A new writable backup file with the new extension and all of the metadata from the previous file.

1 method overrides TempFileManagerInterface::pushExt()
TempFileManager::pushExt in src/Core/File/TempFileManager.php
Return a new file based on the passed in file with the given file ext.

File

src/Core/File/TempFileManagerInterface.php, line 45

Class

TempFileManagerInterface
A TempFileManager is in charge of creating new temp files.

Namespace

Drupal\backup_migrate\Core\File

Code

public function pushExt(BackupFileInterface $file, $ext);