public function ReadableDestinationInterface::getFile in Backup and Migrate 5.0.x
Get a file object representing the file with the given ID from the dest.
This file item will not necessarily be readable nor will it have extended metadata loaded. Use loadForReading and loadFileMetadata to get those.
@todo Decide if extended metadata should ALWAYS be loaded here.
Parameters
string $id: The unique identifier for the file. Usually the filename.
Return value
\Drupal\backup_migrate\Core\File\BackupFileInterface The file if it exists or NULL if it doesn't
2 methods override ReadableDestinationInterface::getFile()
- DirectoryDestination::getFile in src/
Core/ Destination/ DirectoryDestination.php - Get a file object representing the file with the given ID from the dest.
- DrupalBrowserUploadDestination::getFile in src/
Drupal/ Destination/ DrupalBrowserUploadDestination.php - Get a file object representing the file with the given ID from the dest.
File
- src/
Core/ Destination/ ReadableDestinationInterface.php, line 28
Class
- ReadableDestinationInterface
- Interface ReadableDestinationInterface.
Namespace
Drupal\backup_migrate\Core\DestinationCode
public function getFile($id);