# ablocks/2.9.1/includes/blocks/heading/attributes.php

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

- Page: https://pluginprobe.com/plugins/ablocks/2.9.1/code/includes/blocks/heading/attributes.php
- Raw: https://pluginprobe.com/plugins/ablocks/2.9.1/raw/includes/blocks/heading/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/heading/attributes.php#L10-L20`.

```php
<?php

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

use ABlocks\Controls\Alignment;
use ABlocks\Controls\Typography;
use ABlocks\Controls\TextShadow;
use ABlocks\Controls\TextStroke;
use ABlocks\Controls\Link;

$attributes = [
	'block_id' => array(
		'type' => 'string',
		'default' => '',
	),
	'heading' => array(
		'type' => 'string',
		'source' => 'html',
		'selector' => '.ablocks-heading-text'
	),
	'headingTag' => array(
		'type' => 'string',
		'default' => 'h2',
	),
	'textColor' => array(
		'type' => 'string',
		'default' => '',
	)
];

$attributes = array_merge(
	$attributes,
	Alignment::get_attribute( 'alignment', true, [ 'value' => 'left' ] ),
	Typography::get_attribute( 'typography', true ),
	TextShadow::get_attribute( 'textShadow' ),
	Link::get_attribute( 'link' ),
	TextStroke::get_attribute( 'textStroke', true ),
);

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


```
