class DrupalBrowserDownloadDestination in Backup and Migrate 8.4
Class DrupalBrowserDownloadDestination.
@package BackupMigrate\Drupal\Destination
Hierarchy
- class \BackupMigrate\Core\Plugin\PluginBase implements ConfigurableInterface, PluginInterface uses ConfigurableTrait
- class \BackupMigrate\Core\Destination\StreamDestination implements ConfigurableInterface, WritableDestinationInterface
- class \BackupMigrate\Core\Destination\BrowserDownloadDestination implements WritableDestinationInterface, PluginCallerInterface uses PluginCallerTrait
- class \BackupMigrate\Drupal\Destination\DrupalBrowserDownloadDestination
- class \BackupMigrate\Core\Destination\BrowserDownloadDestination implements WritableDestinationInterface, PluginCallerInterface uses PluginCallerTrait
- class \BackupMigrate\Core\Destination\StreamDestination implements ConfigurableInterface, WritableDestinationInterface
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\DestinationView 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
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BrowserDownloadDestination:: |
public | function |
Overrides StreamDestination:: |
|
ConfigurableTrait:: |
protected | property | The object's configuration object. | |
ConfigurableTrait:: |
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:: |
public | function | Get a specific value from the configuration. | |
ConfigurableTrait:: |
public | function | Get the configuration object for this item. | |
ConfigurableTrait:: |
public | function | Get the default values for the plugin. | 10 |
ConfigurableTrait:: |
public | function | Get any validation errors in the config. | |
ConfigurableTrait:: |
public | function | Get a default (blank) schema. | 10 |
ConfigurableTrait:: |
public | function | Set the configuration for all plugins. | 1 |
ConfigurableTrait:: |
public | function | 2 | |
DrupalBrowserDownloadDestination:: |
function |
Save a file to the destination. Overrides BrowserDownloadDestination:: |
||
PluginBase:: |
public | function |
What is the weight of the given operation for this plugin. Overrides PluginInterface:: |
|
PluginBase:: |
public | function |
Get a list of supported operations and their weight. Overrides PluginInterface:: |
8 |
PluginBase:: |
public | function |
Does this plugin implement the given operation. Overrides PluginInterface:: |
|
PluginCallerTrait:: |
protected | property | ||
PluginCallerTrait:: |
public | function | Get the plugin manager. | |
PluginCallerTrait:: |
public | function | Inject the plugin manager. | |
StreamDestination:: |
public | function | ||
StreamDestination:: |
public | function | ||
StreamDestination:: |
public | function | ||
TranslatableTrait:: |
protected | property | ||
TranslatableTrait:: |
public | function | ||
TranslatableTrait:: |
public | function | Translate the given string if there is a translator service available. |