You are here

public function BackupFile::getExtLast in Backup and Migrate 8.4

Get the last file extension.

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

Return value

mixed

Overrides BackupFileInterface::getExtLast

File

lib/backup_migrate_core/src/File/BackupFile.php, line 135

Class

BackupFile
Class BackupFile.

Namespace

BackupMigrate\Core\File

Code

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