You are here

public function BackupFile::getExtLast in Backup and Migrate 5.0.x

Get the last file extension.

For example: testfile.txt.gz would return: 'gz'

Return value

mixed

Overrides BackupFileInterface::getExtLast

File

src/Core/File/BackupFile.php, line 136

Class

BackupFile
@package Drupal\backup_migrate\Core\File

Namespace

Drupal\backup_migrate\Core\File

Code

public function getExtLast() {
  return end($this->ext);
}