File "has-generate.php"

Full Path: /home/elegucvf/public_html/elementor/modules/atomic-widgets/prop-types/concerns/has-generate.php
File size: 420 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Elementor\Modules\AtomicWidgets\PropTypes\Concerns;

use Elementor\Modules\AtomicWidgets\PropTypes\Contracts\Transformable_Prop_Type;

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

trait Has_Generate {
	public static function generate( $value ) {
		return [
			'$$type' => static::get_key(),
			'value' => $value,
		];
	}

	abstract public static function get_key(): string;
}