You are here

public function ExportProcessor::closeProcess in Content Synchronizer 8

Same name and namespace in other branches
  1. 8.2 src/Processors/ExportProcessor.php \Drupal\content_synchronizer\Processors\ExportProcessor::closeProcess()
  2. 3.x src/Processors/ExportProcessor.php \Drupal\content_synchronizer\Processors\ExportProcessor::closeProcess()

Delete the unzip files after process.

File

src/Processors/ExportProcessor.php, line 91

Class

ExportProcessor
Export Processor.

Namespace

Drupal\content_synchronizer\Processors

Code

public function closeProcess() {
  $this->writer
    ->archiveFiles();
  if ($archive = $this->writer
    ->getArchiveUri()) {
    return $archive;
  }
}