PluginProbe
The Innovative Form Builder – IvyForms / 1.0
The Innovative Form Builder – IvyForms v1.0
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
ivyforms / backend / src / Services / Template / BlankFormTemplate.php

BlankFormTemplate.php in The Innovative Form Builder – IvyForms 1.0, at backend/src/Services/Template/BlankFormTemplate.php

50 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace IvyForms\Services\Template;
4
5 use IvyForms\Services\Translations\BackendStrings;
6
7 class BlankFormTemplate
8 {
9 /**
10 * Get template metadata (without form_data)
11 *
12 * @return array<string, mixed>
13 */
14 public static function getTemplateMeta(): array
15 {
16 return [
17 'id' => 'blank_form',
18 'name' => BackendStrings::getSettingsFormBuilderStrings()['blank_form'],
19 'description' => '',
20 'category' => 'basic',
21 'is_pro' => false,
22 'screenshot' => ''
23 ];
24 }
25
26 /**
27 * Get the full template including form data
28 *
29 * @return array<string, mixed>
30 */
31 public static function getTemplate(): array
32 {
33 return array_merge(
34 self::getTemplateMeta(),
35 [
36 'form_data' => [
37 'name' => BackendStrings::getSettingsFormBuilderStrings()['blank_form'],
38 'description' => '',
39 'published' => 1,
40 'showTitle' => 1,
41 'storeEntries' => 1,
42 'integrationSettings' => TemplateDefaults::getDefaultIntegrationSettings(),
43 'fields' => [],
44 'settings' => []
45 ]
46 ]
47 );
48 }
49 }
50