You are here

public function YamlFormMessageManager::setYamlFormSubmission in YAML Form 8

Set the form submission used for token replacement.

Parameters

\Drupal\yamlform\YamlFormSubmissionInterface $yamlform_submission: A form submission.

Overrides YamlFormMessageManagerInterface::setYamlFormSubmission

File

src/YamlFormMessageManager.php, line 133

Class

YamlFormMessageManager
Defines the form message (and login) manager.

Namespace

Drupal\yamlform

Code

public function setYamlFormSubmission(YamlFormSubmissionInterface $yamlform_submission = NULL) {
  $this->yamlformSubmission = $yamlform_submission;
  if ($yamlform_submission && empty($this->yamlform)) {
    $this->yamlform = $yamlform_submission
      ->getYamlForm();
  }
}