You are here

protected function EmailedExport::getExportFileOrArchiveName in Webform Scheduled Tasks 8.2

Get the file or archive name, whichever is appropriate.

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

Return value

string The name of a file.

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

File

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

Class

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

Namespace

Drupal\webform_scheduled_tasks\Plugin\WebformScheduledTasks\Task

Code

protected function getExportFileOrArchiveName(WebformSubmissionExporterInterface $initializedExporter) {
  if ($initializedExporter
    ->isArchive()) {
    return $initializedExporter
      ->getArchiveFileName();
  }
  return $initializedExporter
    ->getExportFileName();
}