You are here

public function WebformEntityInjectionTrait::setWebformSubmission in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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.

3 calls to WebformEntityInjectionTrait::setWebformSubmission()
OptionsLimitWebformHandler::alterElement in modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php
Alter webform element.
OptionsLimitWebformHandler::validateBooleanElement in modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php
Validate a boolean element with limit(s).
OptionsLimitWebformHandler::validateOptionsElement in modules/webform_options_limit/src/Plugin/WebformHandler/OptionsLimitWebformHandler.php
Validate an options element with limit(s).

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;
}