You are here

public function WebformMessageManagerInterface::setWebformSubmission in Webform 8.5

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

Set the webform submission used for token replacement.

Webform and source entity will also be set using the webform submission.

Parameters

\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.

1 method overrides WebformMessageManagerInterface::setWebformSubmission()
WebformMessageManager::setWebformSubmission in src/WebformMessageManager.php
Set the webform submission used for token replacement.

File

src/WebformMessageManagerInterface.php, line 180

Class

WebformMessageManagerInterface
Provides an interface for managing a webform's custom, default, and hard-coded messages.

Namespace

Drupal\webform

Code

public function setWebformSubmission(WebformSubmissionInterface $webform_submission = NULL);