You are here

class DrupalBrowserDownloadDestination in Backup and Migrate 5.0.x

@package Drupal\backup_migrate\Drupal\Destination

Hierarchy

Expanded class hierarchy of DrupalBrowserDownloadDestination

2 files declare their use of DrupalBrowserDownloadDestination
BackupController.php in src/Controller/BackupController.php
backup_migrate.module in ./backup_migrate.module
Primary hook implementations for Backup Migrate.

File

src/Drupal/Destination/DrupalBrowserDownloadDestination.php, line 13

Namespace

Drupal\backup_migrate\Drupal\Destination
View source
class DrupalBrowserDownloadDestination extends BrowserDownloadDestination {

  /**
   * {@inheritdoc}
   */
  public function saveFile(BackupFileReadableInterface $file) {

    // @todo Replace the header/print calls with a Symfony response (if that
    // allows streaming).
    // Need to find some way to return new BinaryFileResponse($uri, 200
    // $headers); all the way out to the output of the caller.
    // Probably need to provide the response as a service in the environment.
    parent::saveFile($file);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BrowserDownloadDestination::checkWritable public function Overrides StreamDestination::checkWritable
ConfigurableTrait::$config protected property The object's configuration object.
ConfigurableTrait::$init protected property The initial configuration.
ConfigurableTrait::confGet public function Get a specific value from the configuration.
ConfigurableTrait::config public function Get the configuration object for this item.
ConfigurableTrait::configDefaults public function Get the default values for the plugin. 10
ConfigurableTrait::configErrors public function Get any validation errors in the config.
ConfigurableTrait::configSchema public function Get a default (blank) schema. 10
ConfigurableTrait::setConfig public function Set the configuration for all plugins. 1
ConfigurableTrait::__construct public function 2
DrupalBrowserDownloadDestination::saveFile public function Save a file to the destination. Overrides BrowserDownloadDestination::saveFile
PluginBase::opWeight public function What is the weight of the given operation for this plugin. Overrides PluginInterface::opWeight
PluginBase::supportedOps public function Get a list of supported operations and their weight. Overrides PluginInterface::supportedOps 8
PluginBase::supportsOp public function Does this plugin implement the given operation. Overrides PluginInterface::supportsOp
PluginCallerTrait::$plugins protected property
PluginCallerTrait::plugins public function Get the plugin manager.
PluginCallerTrait::setPluginManager public function Inject the plugin manager.
StreamDestination::getFile public function
StreamDestination::loadFileForReading public function
StreamDestination::loadFileMetadata public function
TranslatableTrait::$translator protected property
TranslatableTrait::setTranslator public function
TranslatableTrait::t public function Translate the given string if there is a translator service available.