You are here

public function YamlFormMessageManager::setSourceEntity in YAML Form 8

Set the form source entity whose submissions are being exported.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: An entity.

Overrides YamlFormMessageManagerInterface::setSourceEntity

File

src/YamlFormMessageManager.php, line 126

Class

YamlFormMessageManager
Defines the form message (and login) manager.

Namespace

Drupal\yamlform

Code

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