You are here

public function DrupalBrowserUploadDestination::fileExists in Backup and Migrate 5.0.x

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 Whether the file exists in this destination.

Overrides ReadableDestinationInterface::fileExists

File

src/Drupal/Destination/DrupalBrowserUploadDestination.php, line 55

Class

DrupalBrowserUploadDestination
@package Drupal\backup_migrate\Core\Destination

Namespace

Drupal\backup_migrate\Drupal\Destination

Code

public function fileExists($id) {
  return (bool) \Drupal::request()->files
    ->has("files[{$id}]");
}