From 431ea86745aa35afeeb600aa0787a6fe61011a0d Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 20 Dec 2023 15:22:55 +1300 Subject: [PATCH] Deprecate less reliable contributionPage api functions These functions only really got adopted in tests - we should discourage people from using them as I think they somewhat unreliable --- api/v3/ContributionPage.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/v3/ContributionPage.php b/api/v3/ContributionPage.php index a6649605be..c3a169fb9f 100644 --- a/api/v3/ContributionPage.php +++ b/api/v3/ContributionPage.php @@ -161,3 +161,10 @@ function _civicrm_api3_contribution_page_getlist_defaults(&$request) { ], ]; } + +function _civicrm_api3_contribution_page_deprecation(): array { + return [ + 'submit' => 'Not recommended as reliable enough for production use. See methods in CRM_Contribute_Form_Contribution_ConfirmTest for better methods in tests.', + 'validate' => 'Not recommended as reliable enough for production use. See methods in CRM_Contribute_Form_Contribution_ConfirmTest for better methods in tests.', + ]; +} -- 2.25.1