PluginProbe
The Innovative Form Builder – IvyForms / 1.5
The Innovative Form Builder – IvyForms v1.5
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
← All changes | backend/src/Services/Template/CustomerSupportFeedbackFormTemplate.php +17 -3 1.0 → 1.5 View file →
@@ -6,13 +6,13 @@
6 6
7 7 class CustomerSupportFeedbackFormTemplate
8 8 {
9 9 /**
10 - * Get the Customer Support Feedback template
10 + * Get template metadata (without form_data)
11 11 *
12 12 * @return array<string, mixed>
13 13 */
14 - public static function getTemplate(): array
14 + public static function getTemplateMeta(): array
15 15 {
16 16 return [
17 17 'id' => 'customer_support_feedback_form',
18 18 'name' => BackendStrings::getTemplateStrings()['customer_support_feedback_form'],
@@ -20,8 +20,21 @@
20 20 'category' => 'feedback-forms',
21 21 'subcategory' => 'customer-feedback-forms',
22 22 'is_pro' => false,
23 23 'screenshot' => IVYFORMS_TEMPLATES_IMAGES_URL . 'customer-support-feedback-form.svg',
24 + ];
25 + }
26 +
27 + /**
28 + * Get the full template including form data
29 + *
30 + * @return array<string, mixed>
31 + */
32 + public static function getTemplate(): array
33 + {
34 + return array_merge(
35 + self::getTemplateMeta(),
36 + [
24 37 'form_data' => [
25 38 'name' => BackendStrings::getTemplateStrings()['customer_support_feedback_form'],
26 39 'published' => 1,
27 40 'showTitle' => 1,
@@ -36,9 +49,10 @@
36 49 self::getFollowUpEmailField()
37 50 ),
38 51 'settings' => []
39 52 ]
40 - ];
53 + ]
54 + );
41 55 }
42 56
43 57 /**
44 58 * Was your issue resolved? (radio, required)