You are here

class DrupalBrowserDownloadDestination in Backup and Migrate 8.4

Class DrupalBrowserDownloadDestination.

@package BackupMigrate\Drupal\Destination

Hierarchy

Expanded class hierarchy of DrupalBrowserDownloadDestination

1 file declares its use of DrupalBrowserDownloadDestination
BackupController.php in src/Controller/BackupController.php

File

src/Destination/DrupalBrowserDownloadDestination.php, line 13

Namespace

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

  /**
   * {@inheritdoc}
   */
  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);

    // @todo Get rid of this ugliness.
    exit;
  }

}

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. These configuration options can be overriden by the config options but will not be overwritten. If the object is re-configured after construction any missing configuration options will revert to these values.
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 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.