public function DrupalBrowserUploadDestination::fileExists in Backup and Migrate 8.4
Does the file with the given id (filename) exist in this destination.
Parameters
string $id The id (usually the filename) of the file.:
Return value
bool True if the file exists, false if it does not.
Overrides ReadableDestinationInterface::fileExists
File
- src/
Destination/ DrupalBrowserUploadDestination.php, line 60
Class
- DrupalBrowserUploadDestination
- Class BrowserUploadDestination.
Namespace
BackupMigrate\Drupal\DestinationCode
public function fileExists($id) {
return (bool) \Drupal::request()->files
->has("files[{$id}]");
}