You are here

public function WebformSubmissionExporter::setSourceEntity in Webform 8.5

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

Set the webform source entity whose submissions are being exported.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: A webform's source entity.

Overrides WebformSubmissionExporterInterface::setSourceEntity

File

src/WebformSubmissionExporter.php, line 160

Class

WebformSubmissionExporter
Webform submission exporter.

Namespace

Drupal\webform

Code

public function setSourceEntity(EntityInterface $entity = NULL) {
  $this->sourceEntity = $entity;
}