You are here

public function YamlFormElementBase::preSave in YAML Form 8

Acts on a form submission element before the presave hook is invoked.

Parameters

array $element: An element.

\Drupal\yamlform\YamlFormSubmissionInterface $yamlform_submission: A form submission.

Overrides YamlFormElementInterface::preSave

2 methods override YamlFormElementBase::preSave()
Captcha::preSave in src/Plugin/YamlFormElement/Captcha.php
Acts on a form submission element before the presave hook is invoked.
YamlFormTest::preSave in tests/modules/yamlform_test/src/Plugin/YamlFormElement/YamlFormTest.php
Acts on a form submission element before the presave hook is invoked.

File

src/YamlFormElementBase.php, line 906

Class

YamlFormElementBase
Provides a base class for a form element.

Namespace

Drupal\yamlform

Code

public function preSave(array &$element, YamlFormSubmissionInterface $yamlform_submission) {
}