You are here

protected function EmailedExport::getExportFileOrArchivePath in Webform Scheduled Tasks 8.2

Get the file or archive path, whichever is appropriate.

@parram \Drupal\webform\WebformSubmissionExporterInterface $initializedExporter The initialized exporter.

Return value

string A path to an archive or file.

1 call to EmailedExport::getExportFileOrArchivePath()
EmailedExport::executeTask in src/Plugin/WebformScheduledTasks/Task/EmailedExport.php
Execute a task.

File

src/Plugin/WebformScheduledTasks/Task/EmailedExport.php, line 324

Class

EmailedExport
A task which emails an export of a list of webforms.

Namespace

Drupal\webform_scheduled_tasks\Plugin\WebformScheduledTasks\Task

Code

protected function getExportFileOrArchivePath(WebformSubmissionExporterInterface $initializedExporter) {
  if ($initializedExporter
    ->isArchive()) {
    return $initializedExporter
      ->getArchiveFilePath();
  }
  return $initializedExporter
    ->getExportFilePath();
}