You are here

public function ConfigPartialExportController::downloadExport in Config Partial Export 8

Downloads a tarball of the site configuration.

1 string reference to 'ConfigPartialExportController::downloadExport'
config_partial_export.routing.yml in ./config_partial_export.routing.yml
config_partial_export.routing.yml

File

src/Controller/ConfigPartialExportController.php, line 44

Class

ConfigPartialExportController
Returns responses for config module routes.

Namespace

Drupal\config_partial_export\Controller

Code

public function downloadExport() {
  $request = new Request([
    'file' => 'config_partial.tar.gz',
  ]);
  $result = $this->fileDownloadController
    ->download($request, 'temporary');
  return $result;
}