PluginProbe
The Innovative Form Builder – IvyForms / 1.5.1
The Innovative Form Builder – IvyForms v1.5.1
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 / Integrations / Gutenberg / Blocks / BlockAttributes.php

BlockAttributes.php in The Innovative Form Builder – IvyForms 1.5.1, at backend/src/Services/Integrations/Gutenberg/Blocks/BlockAttributes.php

50 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * BlockAttributes class for defining Gutenberg block attributes
5 *
6 * @copyright © Melograno Venture Studio. All rights reserved.
7 * @licence See LICENCE.md for license details.
8 */
9
10 namespace IvyForms\Services\Integrations\Gutenberg\Blocks;
11
12 /**
13 * Class BlockAttributes
14 *
15 * @package IvyForms\Services\Blocks
16 */
17 class BlockAttributes
18 {
19 /**
20 * Get all attributes for the IvyForms Gutenberg block
21 *
22 * @return array<string, array<string, mixed>> Block attributes configuration
23 */
24 public static function getAttributes(): array
25 {
26 return [
27 'formId' => [
28 'type' => 'string',
29 'default' => '',
30 ],
31 'showTitle' => [
32 'type' => 'boolean',
33 'default' => true,
34 ],
35 'showDescription' => [
36 'type' => 'boolean',
37 'default' => true,
38 ],
39 'customCssClass' => [
40 'type' => 'string',
41 'default' => '',
42 ],
43 'className' => [
44 'type' => 'string',
45 'default' => '',
46 ],
47 ];
48 }
49 }
50