← All changes
|
src/Tracking/Events/EditedDonationFormsTracking.php
+10
-0
2.30.0
→
4.16.9
View file →
| @@ -1,8 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | namespace Give\Tracking\Events; |
| 4 | 4 | |
| 5 | +use Give\DonationForms\Models\DonationForm; | |
| 5 | 6 | use Give\Tracking\Contracts\TrackEvent; |
| 6 | 7 | use Give\Tracking\Enum\EventType; |
| 7 | 8 | use Give\Tracking\Repositories\TrackEvents; |
| 8 | 9 | use Give\Tracking\TrackingData\EditedDonationFormsData; |
| @@ -51,7 +52,16 @@ | ||
| 51 | 52 | */ |
| 52 | 53 | public function savePostHookHandler($formId) |
| 53 | 54 | { |
| 54 | 55 | $this->trackEvents->saveRecentlyEditedDonationForm($formId); |
| 56 | + $this->record(); | |
| 57 | + } | |
| 58 | + | |
| 59 | + /** | |
| 60 | + * @since 3.0.0 | |
| 61 | + */ | |
| 62 | + public function formBuilderUpdatedHookHandler(DonationForm $form) | |
| 63 | + { | |
| 64 | + $this->trackEvents->saveRecentlyEditedDonationForm($form->id); | |
| 55 | 65 | $this->record(); |
| 56 | 66 | } |
| 57 | 67 | } |