| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\Variables\Classes; |
| 4 |
|
| 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; |
| 9 |
|
| 10 |
if ( ! defined( 'ABSPATH' ) ) { |
| 11 |
exit; // Exit if accessed directly. |
| 12 |
} |
| 13 |
|
| 14 |
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 ); |
| 20 |
|
| 21 |
return $this; |
| 22 |
} |
| 23 |
} |
| 24 |
|