public function ContentSynchronizerManager::launchExport in Content Synchronizer 3.x
Launch the specified export.
Parameters
int $exportId: The id of the export to launch.
string $destination: The path of the created file.
Return value
array The destination data.
File
- src/
Service/ ContentSynchronizerManager.php, line 166
Class
- ContentSynchronizerManager
- ContentSynchronizerManager service.
Namespace
Drupal\content_synchronizer\ServiceCode
public function launchExport($exportId, $destination = '') {
$export = ExportEntity::load($exportId);
if (!$export) {
throw new \Exception('No export with the ID ' . $exportId . ' found');
}
return $this
->createExportFile($export
->getEntitiesList(), $export
->label(), $destination);
}