You are here

public function WebformSubmissionExporter::setWebform in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformSubmissionExporter.php \Drupal\webform\WebformSubmissionExporter::setWebform()

Set the webform whose submissions are being exported.

Parameters

\Drupal\webform\WebformInterface $webform: A webform.

Overrides WebformSubmissionExporterInterface::setWebform

File

src/WebformSubmissionExporter.php, line 146

Class

WebformSubmissionExporter
Webform submission exporter.

Namespace

Drupal\webform

Code

public function setWebform(WebformInterface $webform = NULL) {
  $this->webform = $webform;
  $this->defaultOptions = NULL;
  $this->elementTypes = NULL;
  $this->attachmentElements = NULL;
}