You are here

public function YamlFormSubmissionExporter::setSourceEntity in YAML Form 8

Set the form source entity whose submissions are being exported.

Parameters

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

Overrides YamlFormSubmissionExporterInterface::setSourceEntity

File

src/YamlFormSubmissionExporter.php, line 145

Class

YamlFormSubmissionExporter
Form submission exporter.

Namespace

Drupal\yamlform

Code

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