| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\AtomicWidgets\CssConverter\Converters; |
| 4 |
|
| 5 |
use Elementor\Modules\AtomicWidgets\CssConverter\Conversion_Context; |
| 6 |
use Elementor\Modules\AtomicWidgets\CssConverter\Property_Converter_Base; |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
exit; // Exit if accessed directly. |
| 10 |
} |
| 11 |
|
| 12 |
/** |
| 13 |
* Placeholder that explicitly claims a schema property but declines conversion, so the rule |
| 14 |
* routes to customCss. Real converters replace the no-op for their property (Phase 1+). |
| 15 |
*/ |
| 16 |
class Noop_Converter extends Property_Converter_Base { |
| 17 |
private string $property; |
| 18 |
|
| 19 |
public function __construct( string $property ) { |
| 20 |
$this->property = $property; |
| 21 |
} |
| 22 |
|
| 23 |
protected function get_supported_properties(): array { |
| 24 |
return [ $this->property ]; |
| 25 |
} |
| 26 |
|
| 27 |
protected function do_convert( Conversion_Context $context, array $rule ): bool { |
| 28 |
return false; |
| 29 |
} |
| 30 |
} |
| 31 |
|