You are here

public function WebformHandlerBase::setWebformSubmission in Webform 8.5

Set the webform submission that this handler is handling.

@todo Webform 8.x-6.x: Replace with WebformEntityInjectionInterface.

Parameters

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

Return value

$this This webform handler.

Overrides WebformHandlerInterface::setWebformSubmission

3 calls to WebformHandlerBase::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/WebformHandlerBase.php, line 205

Class

WebformHandlerBase
Provides a base class for a webform handler.

Namespace

Drupal\webform\Plugin

Code

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