You are here

public function WebformEntityInjectionTrait::setWebformSubmission in Webform 8.5

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

Get the webform submission that this handler is handling.

Return value

\Drupal\webform\WebformSubmissionInterface A webform submission.

File

src/Plugin/WebformEntityInjectionTrait.php, line 58

Class

WebformEntityInjectionTrait
Provides an webform/webform submission entity inject trait.

Namespace

Drupal\webform\Plugin

Code

public function setWebformSubmission(WebformSubmissionInterface $webform_submission = NULL) {
  $this->webformSubmission = $webform_submission;
  return $this;
}