You are here

public function YamlFormTest::postDelete in YAML Form 8

Delete any additional value associated with an element.

Currently only applicable to file uploads.

Parameters

array $element: An element.

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

Overrides YamlFormElementBase::postDelete

File

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

Class

YamlFormTest
Provides a 'yamlform_test' element.

Namespace

Drupal\yamlform_test\Plugin\YamlFormElement

Code

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