/var/www/html_it/wp-content/plugins/elementor/modules/variables/classes/style-transformers.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

namespace Elementor\Modules\Variables\Classes;

use 
Elementor\Modules\AtomicWidgets\PropsResolver\Transformers_Registry;
use 
Elementor\Modules\Variables\PropTypes\Color_Variable_Prop_Type;
use 
Elementor\Modules\Variables\PropTypes\Font_Variable_Prop_Type;
use 
Elementor\Modules\Variables\Transformers\Global_Variable_Transformer;

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

class 
Style_Transformers {
    public function 
append_toTransformers_Registry $transformers_registry ): self {
        
$transformer = new Global_Variable_Transformer();

        
$transformers_registry->registerColor_Variable_Prop_Type::get_key(), $transformer );
        
$transformers_registry->registerFont_Variable_Prop_Type::get_key(), $transformer );

        return 
$this;
    }
}