public function TestYamlFormHandler::preDelete in YAML Form 8
Acts on a form submission before they are deleted and before hooks are invoked.
Used before the entities are deleted and before invoking the delete hook.
Parameters
\Drupal\yamlform\YamlFormSubmissionInterface $yamlform_submission: A form submission.
Overrides YamlFormHandlerBase::preDelete
File
- tests/
modules/ yamlform_test/ src/ Plugin/ YamlFormHandler/ TestYamlFormHandler.php, line 118
Class
- TestYamlFormHandler
- Form submission test handler.
Namespace
Drupal\yamlform_test\Plugin\YamlFormHandlerCode
public function preDelete(YamlFormSubmissionInterface $yamlform_submission) {
$this
->displayMessage(__FUNCTION__);
}