You are here

public function WebformHandlerBase::overrideSettings in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformHandlerBase.php \Drupal\webform\Plugin\WebformHandlerBase::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 WebformHandlerInterface::overrideSettings

3 methods override WebformHandlerBase::overrideSettings()
ExampleWebformHandler::overrideSettings in modules/webform_example_handler/src/Plugin/WebformHandler/ExampleWebformHandler.php
Alter/override a webform submission webform settings.
SettingsWebformHandler::overrideSettings in src/Plugin/WebformHandler/SettingsWebformHandler.php
Alter/override a webform submission webform settings.
TestWebformHandler::overrideSettings in tests/modules/webform_test_handler/src/Plugin/WebformHandler/TestWebformHandler.php
Alter/override a webform submission webform settings.

File

src/Plugin/WebformHandlerBase.php, line 575

Class

WebformHandlerBase
Provides a base class for a webform handler.

Namespace

Drupal\webform\Plugin

Code

public function overrideSettings(array &$settings, WebformSubmissionInterface $webform_submission) {
}