You are here

public function TestWebformHandler::overrideSettings in Webform 8.5

Same name and namespace in other branches
  1. 6.x tests/modules/webform_test_handler/src/Plugin/WebformHandler/TestWebformHandler.php \Drupal\webform_test_handler\Plugin\WebformHandler\TestWebformHandler::overrideSettings()

Alter/override a webform submission webform settings.

IMPORTANT: Webform settings are overridden for just the webform submission. Overridden settings are never saved to the Webform's configuration.

Parameters

array $settings: An associative array containing the webform settings.

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

Overrides WebformHandlerBase::overrideSettings

File

tests/modules/webform_test_handler/src/Plugin/WebformHandler/TestWebformHandler.php, line 74

Class

TestWebformHandler
Webform submission test handler.

Namespace

Drupal\webform_test_handler\Plugin\WebformHandler

Code

public function overrideSettings(array &$settings, WebformSubmissionInterface $webform_submission) {
  $this
    ->displayMessage(__FUNCTION__);
}