public function WebformSubmissionExporter::setSourceEntity in Webform 6.x
Same name and namespace in other branches
- 8.5 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 163
Class
- WebformSubmissionExporter
- Webform submission exporter.
Namespace
Drupal\webformCode
public function setSourceEntity(EntityInterface $entity = NULL) {
$this->sourceEntity = $entity;
}