File "global-variable.php"

Full Path: /home/rfaztorb/public_html/wp-content-20250522162300/plugins/elementor/modules/variables/transformers/global-variable.php
File size: 377 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Elementor\Modules\Variables\Transformers;

use Elementor\Modules\AtomicWidgets\PropsResolver\Transformer_Base;

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

class Global_Variable extends Transformer_Base {
	public function transform( $value, $key ) {
		if ( ! trim( $value ) ) {
			return null;
		}

		return "var(--${value})";
	}
}