# ablocks/2.11.1/includes/blocks/form-select/attributes.php

aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder &amp; Animation Builder, version 2.11.1. 59 lines.

- Page: https://pluginprobe.com/plugins/ablocks/2.11.1/code/includes/blocks/form-select/attributes.php
- Raw: https://pluginprobe.com/plugins/ablocks/2.11.1/raw/includes/blocks/form-select/attributes.php
- Modified: 2025-12-10T13:59:10+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/ablocks/2.11.1/code/includes/blocks/form-select/attributes.php#L10-L20`.

```php
<?php
use ABlocks\Controls\Range;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$attributes = [
	'block_id' => array(
		'type' => 'string',
		'default' => ''
	),

	'label' => [
		'type' => 'string',
		'default' => 'What\'s your favorite programming lang?'
	],
	'name' => [
		'type' => 'string',
		'default' => '',
	],
	'helperText' => [
		'type' => 'string',
		'default' => ''
	],
	'isRequired' => [
		'type' => 'boolean',
		'default' => true,
	],
	'errorMsg' => [
		'type' => 'string',
		'default' => 'This field is required',
	],
	'options' => [
		'type' => 'array',
		'default' => [
			[
				'id' => 1,
				'value' => 'javascript'
			]
		]
	]
];

$attributes = array_merge(
	$attributes,
	Range::get_attribute( [
		'attributeName' => 'inputWidth',
		'attributeObjectKey' => 'value',
		'isResponsive' => true,
		'defaultValue' => 100,
		'hasUnit' => true,
		'unitDefaultValue' => '%',
	] ),
);

return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );


```
