feat: webhook form finisher for generic post requests

addresses #869cupm97
This commit is contained in:
Björn Fromme
2026-06-16 11:18:07 +02:00
parent 90a5fab2fa
commit 9933a0d3f7
6 changed files with 129 additions and 23 deletions
@@ -23,6 +23,8 @@ TYPO3:
finishersDefinition:
BpnApiFinisher:
implementationClassName: 'EP\EpTheme\Form\BpnApiFinisher'
WebhookFinisher:
implementationClassName: 'EP\EpTheme\Form\WebhookFinisher'
AddReferrerFinisher:
implementationClassName: 'EP\EpTheme\Form\AddReferrerFinisher'
@@ -12,6 +12,9 @@ TYPO3:
1000:
value: 'BpnApiFinisher'
label: 'BusPro Finisher'
1050:
value: 'WebhookFinisher'
label: 'Webhook Finisher'
1100:
value: 'AddReferrerFinisher'
label: 'Referrer Finisher'
@@ -31,6 +34,27 @@ TYPO3:
propertyPath: 'options.mapping'
propertyValidators:
10: 'NotEmpty'
1050:
identifier: 'WebhookFinisher'
editors:
__inheritances:
10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseCollectionEditorsMixin'
100:
label: 'Webhook Finisher'
110:
identifier: 'mapping'
templateName: 'Inspector-TextEditor'
label: 'Mapping'
propertyPath: 'options.mapping'
propertyValidators:
10: 'NotEmpty'
120:
identifier: 'url'
templateName: 'Inspector-TextEditor'
label: 'URL'
propertyPath: 'options.url'
propertyValidators:
10: 'NotEmpty'
1100:
identifier: 'AddReferrerFinisher'
editors:
@@ -46,6 +70,13 @@ TYPO3:
predefinedDefaults:
options:
mapping: 'lastName:text-1,firstName:text-2,gender:singleselect-1,email:email-1,phone:telephone-1'
WebhookFinisher:
formEditor:
iconIdentifier: 'form-finisher'
predefinedDefaults:
options:
mapping: 'lastName:text-1,firstName:text-2,gender:singleselect-1,email:email-1,phone:telephone-1'
url: ''
AddReferrerFinisher:
formEditor:
iconIdentifier: 'form-finisher'
@@ -11,6 +11,14 @@ TYPO3:
options:
identifier: 'BpnApiFinisher'
mapping: 'lastName:text-1,firstName:text-2,gender:singleselect-1,email:email-1,phone:telephone-1'
WebhookFinisher:
implementationClassName: 'EP\EpTheme\Form\WebhookFinisher'
formEditor:
label: 'Webhook Finisher'
options:
identifier: 'WebhookFinisher'
mapping: 'lastName:text-1,firstName:text-2,gender:singleselect-1,email:email-1,phone:telephone-1'
url: ''
AddReferrerFinisher:
implementationClassName: 'EP\EpTheme\Form\AddReferrerFinisher'
formEditor: