# ablocks/trunk/includes/controls/link.php

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

- Page: https://pluginprobe.com/plugins/ablocks/trunk/code/includes/controls/link.php
- Raw: https://pluginprobe.com/plugins/ablocks/trunk/raw/includes/controls/link.php
- Modified: 2024-06-04T12:57:50+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/trunk/code/includes/controls/link.php#L10-L20`.

```php
<?php
namespace ABlocks\Controls;

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

use ABlocks\Classes\ControlBaseAbstract;

class Link extends ControlBaseAbstract {

	public static function get_attribute_default_value( $is_responsive = false ) {
		return [
			'linkDestination' => '',
			'href' => '',
			'lightbox' => '',
			'linkTarget' => '',
			'rel' => '',
			'noFollow' => '',
			'keyValue' => '',
			'linkClass' => '',
		];
	}

	public static function get_attribute( $attributeName, $isResponsive = false ) {
		return [
			$attributeName => [
				'type' => 'object',
				'default' => self::get_attribute_default_value( $isResponsive )
			]
		];
	}
	public static function get_css( $attribute_value, $property = '', $device = '' ) {

	}
}

```
