You are here

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

Return a new file based on the one passed.

Has the last part of the file extension removed.

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

Parameters

\Drupal\backup_migrate\Core\File\BackupFileInterface $file:

Return value

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

1 method overrides TempFileManagerInterface::popExt()
TempFileManager::popExt in src/Core/File/TempFileManager.php
Return a new file based on the one passed in.

File

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

Class

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

Namespace

Drupal\backup_migrate\Core\File

Code

public function popExt(BackupFileInterface $file);