You are here

public function YamlFormTest::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 YamlFormElementBase::preSave

File

tests/modules/yamlform_test/src/Plugin/YamlFormElement/YamlFormTest.php, line 89

Class

YamlFormTest
Provides a 'yamlform_test' element.

Namespace

Drupal\yamlform_test\Plugin\YamlFormElement

Code

public function preSave(array &$element, YamlFormSubmissionInterface $yamlform_submission) {
  $this
    ->displayMessage(__FUNCTION__);
}