public function ExampleWebformHandler::overrideSettings in Webform 8.5
Same name and namespace in other branches
- 6.x 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 125
Class
- ExampleWebformHandler
- Webform example handler.
Namespace
Drupal\webform_example_handler\Plugin\WebformHandlerCode
public function overrideSettings(array &$settings, WebformSubmissionInterface $webform_submission) {
$this
->debug(__FUNCTION__);
}