From 38ab1de4276fcd3827842fac1032fd1270238c8d Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 2 Dec 2023 16:06:26 +1300 Subject: [PATCH] Add getParticipantID() to register --- CRM/Event/Form/Registration.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CRM/Event/Form/Registration.php b/CRM/Event/Form/Registration.php index de3baa8de7..a8f74be71d 100644 --- a/CRM/Event/Form/Registration.php +++ b/CRM/Event/Form/Registration.php @@ -962,6 +962,17 @@ class CRM_Event_Form_Registration extends CRM_Core_Form { return $totalCount; } + /** + * Get id of participant being acted on. + * + * @api This function will not change in a minor release and is supported for + * use outside of core. This annotation / external support for properties + * is only given where there is specific test cover. + */ + public function getParticipantID(): ?int { + return $this->_participantId; + } + /** * Format user submitted price set params. * -- 2.25.1