public function TestYamlFormHandler::postSave in YAML Form 8
Acts on a saved form submission before the insert or update hook is invoked.
Parameters
\Drupal\yamlform\YamlFormSubmissionInterface $yamlform_submission: A form submission.
bool $update: TRUE if the entity has been updated, or FALSE if it has been inserted.
Overrides YamlFormHandlerBase::postSave
File
- tests/
modules/ yamlform_test/ src/ Plugin/ YamlFormHandler/ TestYamlFormHandler.php, line 139
Class
- TestYamlFormHandler
- Form submission test handler.
Namespace
Drupal\yamlform_test\Plugin\YamlFormHandlerCode
public function postSave(YamlFormSubmissionInterface $yamlform_submission, $update = TRUE) {
$this
->displayMessage(__FUNCTION__, $update ? 'update' : 'insert');
}