AddHoneyPotFieldToDonationForms.php
1 year ago
ConvertConsentBlockToFieldsApi.php
2 years ago
ConvertDonationAmountBlockToFieldsApi.php
2 years ago
ConvertDonationFormBlocksToFieldsApi.php
1 year ago
ConvertQueryDataToDonationForm.php
2 years ago
DispatchDonateControllerDonationCreatedListeners.php
1 year ago
DispatchDonateControllerSubscriptionCreatedListeners.php
2 years ago
GenerateAuthUrl.php
2 years ago
GenerateDonateRouteSignatureArgs.php
2 years ago
GenerateDonateRouteUrl.php
2 years ago
GenerateDonationConfirmationReceiptUrl.php
2 years ago
GenerateDonationConfirmationReceiptViewRouteUrl.php
2 years ago
GenerateDonationFormPreviewRouteUrl.php
2 years ago
GenerateDonationFormValidationRouteUrl.php
2 years ago
GenerateDonationFormViewRouteUrl.php
2 years ago
GetOrCreateDonor.php
2 years ago
PrintFormMetaTags.php
1 year ago
ReplaceGiveReceiptShortcodeViewWithDonationConfirmationIframe.php
1 year ago
SanitizeDonationFormPreviewRequest.php
2 years ago
StoreBackwardsCompatibleFormMeta.php
2 years ago
GenerateDonationFormPreviewRouteUrl.php
25 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\DonationForms\Actions; |
| 4 | |
| 5 | |
| 6 | use Give\Framework\Routes\Route; |
| 7 | |
| 8 | /** |
| 9 | * @since 3.0.0 |
| 10 | */ |
| 11 | class GenerateDonationFormPreviewRouteUrl |
| 12 | { |
| 13 | /** |
| 14 | * @since 3.0.0 |
| 15 | */ |
| 16 | public function __invoke(int $formId): string |
| 17 | { |
| 18 | $args = [ |
| 19 | 'form-id' => $formId |
| 20 | ]; |
| 21 | |
| 22 | return Route::url('donation-form-view-preview', $args); |
| 23 | } |
| 24 | } |
| 25 |