public function WebformElementBase::preSave in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::preSave()
Acts on a webform submission element before the presave hook is invoked.
Parameters
array $element: An element.
\Drupal\webform\WebformSubmissionInterface $webform_submission: A webform submission.
Overrides WebformElementInterface::preSave
4 methods override WebformElementBase::preSave()
- Captcha::preSave in src/
Plugin/ WebformElement/ Captcha.php - Acts on a webform submission element before the presave hook is invoked.
- WebformAttachmentBase::preSave in modules/
webform_attachment/ src/ Plugin/ WebformElement/ WebformAttachmentBase.php - Acts on a webform submission element before the presave hook is invoked.
- WebformSame::preSave in src/
Plugin/ WebformElement/ WebformSame.php - Acts on a webform submission element before the presave hook is invoked.
- WebformTestElement::preSave in tests/
modules/ webform_test_element/ src/ Plugin/ WebformElement/ WebformTestElement.php - Acts on a webform submission element before the presave hook is invoked.
File
- src/
Plugin/ WebformElementBase.php, line 2334
Class
- WebformElementBase
- Provides a base class for a webform element.
Namespace
Drupal\webform\PluginCode
public function preSave(array &$element, WebformSubmissionInterface $webform_submission) {
}