# ablocks/2.9.1/includes/blocks/menu-item/attributes.php

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

- Page: https://pluginprobe.com/plugins/ablocks/2.9.1/code/includes/blocks/menu-item/attributes.php
- Raw: https://pluginprobe.com/plugins/ablocks/2.9.1/raw/includes/blocks/menu-item/attributes.php
- Modified: 2025-04-22T12:59:06+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.9.1/code/includes/blocks/menu-item/attributes.php#L10-L20`.

```php
<?php
use ABlocks\Controls\Link;
$attributes = [
	'block_id' => [
		'type' => 'string',
		'default' => '',
	],
	'label' => [
		'type' => 'string',
		'default' => 'Menu',
	],
	'isSubMenu' => [
		'type' => 'boolean',
		'default' => false,
	],
	'hasMegaMenu' => [
		'type' => 'boolean',
		'default' => false
	],
	'hasLink' => [
		'type' => 'boolean',
		'default' => false,
	],
	'link' => [
		'type' => 'string',
		'default' => '#',
	],
];

$attributes = array_merge(
	$attributes,
	// Adding attributes from various controls
	Link::get_attribute( 'link' ),
);

return $attributes;

```
