# ivyforms/0.8/backend/src/Services/Integrations/Gutenberg/Blocks/BlockAttributes.php

The Innovative Form Builder – IvyForms, version 0.8. 55 lines.

- Page: https://pluginprobe.com/plugins/ivyforms/0.8/code/backend/src/Services/Integrations/Gutenberg/Blocks/BlockAttributes.php
- Raw: https://pluginprobe.com/plugins/ivyforms/0.8/raw/backend/src/Services/Integrations/Gutenberg/Blocks/BlockAttributes.php
- Modified: 2026-01-13T11:11:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ivyforms/0.8/code/backend/src/Services/Integrations/Gutenberg/Blocks/BlockAttributes.php#L10-L20`.

```php
<?php

/**
 * BlockAttributes class for defining Gutenberg block attributes
 *
 * @copyright © TMS-Plugins. All rights reserved.
 * @licence   See LICENCE.md for license details.
 */

namespace IvyForms\Services\Integrations\Gutenberg\Blocks;

// phpcs:disable PSR1.Files.SideEffects
if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly
}

/**
 * Class BlockAttributes
 *
 * @package IvyForms\Services\Blocks
 */
class BlockAttributes
{
    /**
     * Get all attributes for the IvyForms Gutenberg block
     *
     * @return array<string, array<string, mixed>> Block attributes configuration
     */
    public static function getAttributes(): array
    {
        return [
            'formId' => [
                'type' => 'string',
                'default' => '',
            ],
            'showTitle' => [
                'type' => 'boolean',
                'default' => true,
            ],
            'showDescription' => [
                'type' => 'boolean',
                'default' => true,
            ],
            'customCssClass' => [
                'type' => 'string',
                'default' => '',
            ],
            'className' => [
                'type' => 'string',
                'default' => '',
            ],
        ];
    }
}

```
