You are here

public function YamlFormElementInterface::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.

1 method overrides YamlFormElementInterface::preSave()
YamlFormElementBase::preSave in src/YamlFormElementBase.php
Acts on a form submission element before the presave hook is invoked.

File

src/YamlFormElementInterface.php, line 546

Class

YamlFormElementInterface
Defines the interface for form elements.

Namespace

Drupal\yamlform

Code

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