You are here

public function ExampleWebformHandler::overrideSettings in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_example_handler/src/Plugin/WebformHandler/ExampleWebformHandler.php \Drupal\webform_example_handler\Plugin\WebformHandler\ExampleWebformHandler::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

modules/webform_example_handler/src/Plugin/WebformHandler/ExampleWebformHandler.php, line 105

Class

ExampleWebformHandler
Webform example handler.

Namespace

Drupal\webform_example_handler\Plugin\WebformHandler

Code

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