public function WebformSubmissionAjaxResponse::setWebformSubmission in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Ajax/WebformSubmissionAjaxResponse.php \Drupal\webform\Ajax\WebformSubmissionAjaxResponse::setWebformSubmission()
Sets the webform submission of this response.
Parameters
\Drupal\webform\WebformSubmissionInterface $webform_submission: The webform submission of this ajax request.
File
- src/
Ajax/ WebformSubmissionAjaxResponse.php, line 30
Class
- WebformSubmissionAjaxResponse
- Custom JSON response object for an ajax webform submission response.
Namespace
Drupal\webform\AjaxCode
public function setWebformSubmission(WebformSubmissionInterface $webform_submission) {
$this->submission = $webform_submission;
}