You are here

public function WebformSubmissionExporter::isArchive in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformSubmissionExporter.php \Drupal\webform\WebformSubmissionExporter::isArchive()

Determine if an archive is being generated.

Return value

bool TRUE if an archive is being generated.

Overrides WebformSubmissionExporterInterface::isArchive

3 calls to WebformSubmissionExporter::isArchive()
WebformSubmissionExporter::isBatch in src/WebformSubmissionExporter.php
Determine if export needs to use batch processing.
WebformSubmissionExporter::writeHeader in src/WebformSubmissionExporter.php
Write webform results header to export file.
WebformSubmissionExporter::writeRecords in src/WebformSubmissionExporter.php
Write webform results header to export file.

File

src/WebformSubmissionExporter.php, line 1073

Class

WebformSubmissionExporter
Webform submission exporter.

Namespace

Drupal\webform

Code

public function isArchive() {
  if ($this
    ->getExporter()
    ->isArchive()) {
    return TRUE;
  }
  else {
    $export_options = $this
      ->getExportOptions();
    return $export_options['download'] && $export_options['files'];
  }
}