| @@ -2,11 +2,10 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Elementor\Modules\Variables\Classes; |
| 4 | 4 | |
| 5 | 5 | use Elementor\Modules\AtomicWidgets\PropsResolver\Transformers_Registry; |
| 6 | -use Elementor\Modules\Variables\PropTypes\Color_Variable_Prop_Type; | |
| 7 | -use Elementor\Modules\Variables\PropTypes\Font_Variable_Prop_Type; | |
| 8 | -use Elementor\Modules\Variables\Transformers\Global_Variable_Transformer; | |
| 6 | +use Elementor\Modules\Variables\PropTypes\Color_Variable as Color_Variable_Prop_Type; | |
| 7 | +use Elementor\Modules\Variables\Transformers\Global_Variable as Global_Variable_Transformer; | |
| 9 | 8 | |
| 10 | 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | 10 | exit; // Exit if accessed directly. |
| 12 | 11 | } |
| @@ -11,13 +10,10 @@ | ||
| 11 | 10 | exit; // Exit if accessed directly. |
| 12 | 11 | } |
| 13 | 12 | |
| 14 | 13 | class Style_Transformers { |
| 15 | - public function append_to( Transformers_Registry $transformers_registry ): self { | |
| 16 | - $transformer = new Global_Variable_Transformer(); | |
| 17 | - | |
| 18 | - $transformers_registry->register( Color_Variable_Prop_Type::get_key(), $transformer ); | |
| 19 | - $transformers_registry->register( Font_Variable_Prop_Type::get_key(), $transformer ); | |
| 14 | + public function append_to( Transformers_Registry $transformers_registry ) { | |
| 15 | + $transformers_registry->register( Color_Variable_Prop_Type::get_key(), new Global_Variable_Transformer() ); | |
| 20 | 16 | |
| 21 | 17 | return $this; |
| 22 | 18 | } |
| 23 | 19 | } |