public function RemotePostYamlFormHandler::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
- src/
Plugin/ YamlFormHandler/ RemotePostYamlFormHandler.php, line 247
Class
- RemotePostYamlFormHandler
- Form submission remote post handler.
Namespace
Drupal\yamlform\Plugin\YamlFormHandlerCode
public function postSave(YamlFormSubmissionInterface $yamlform_submission, $update = TRUE) {
$operation = $update ? 'update' : 'insert';
$this
->remotePost($operation, $yamlform_submission);
}