← All changes
|
modules/atomic-widgets/css-converter/converters/background-layer-field-converter.php
+5
-1
4.2.0-beta1
→
trunk
View file →
| @@ -74,9 +74,13 @@ | ||
| 74 | 74 | protected function get_supported_properties(): array { |
| 75 | 75 | return [ $this->property ]; |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | - public function convert( Conversion_Context $context, array $rule ): bool { | |
| 78 | + protected function convert_null( Conversion_Context $context, array $rule ): bool { | |
| 79 | + return true; | |
| 80 | + } | |
| 81 | + | |
| 82 | + protected function do_convert( Conversion_Context $context, array $rule ): bool { | |
| 79 | 83 | $overlay_items = $this->get_overlay_items( $context ); |
| 80 | 84 | $image_indices = array_keys( |
| 81 | 85 | array_filter( $overlay_items, fn( $item ) => Background_Image_Overlay_Prop_Type::get_key() === ( $item['$$type'] ?? null ) ) |
| 82 | 86 | ); |