File "repeatable-attributes-control.php"

Full Path: /home/stylijtl/public_html/wp-content/plugins/elementor-pro/modules/attributes/controls/repeatable-attributes-control.php
File size: 702 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
namespace ElementorPro\Modules\Attributes\Controls;

use Elementor\Modules\AtomicWidgets\Controls\Types\Repeatable_Control as Core_Repeatable_Control;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Repeatable_Attributes_Control extends Core_Repeatable_Control {
	private ?array $add_item_tooltip_props = null;

	public function set_addItemTooltipProps( array $props ): self {
		$this->add_item_tooltip_props = $props;

		return $this;
	}

	public function get_props(): array {
		$props = parent::get_props();

		if ( null !== $this->add_item_tooltip_props ) {
			$props['addItemTooltipProps'] = (object) $this->add_item_tooltip_props;
		}

		return $props;
	}
}