← All changes
|
modules/components/documents/component-overridable-prop.php
+0
-24
4.2.1
→
3.35.0-dev2
View file →
| @@ -55,29 +55,5 @@ | ||
| 55 | 55 | |
| 56 | 56 | public static function make( array $overridable_prop ): self { |
| 57 | 57 | return new self( $overridable_prop ); |
| 58 | 58 | } |
| 59 | - | |
| 60 | - public function to_associative_array(): array { | |
| 61 | - $result = [ | |
| 62 | - 'overrideKey' => $this->override_key, | |
| 63 | - 'elementId' => $this->element_id, | |
| 64 | - 'elType' => $this->el_type, | |
| 65 | - 'widgetType' => $this->widget_type, | |
| 66 | - 'propKey' => $this->prop_key, | |
| 67 | - 'label' => $this->label, | |
| 68 | - 'originValue' => $this->origin_value, | |
| 69 | - 'groupId' => $this->group_id, | |
| 70 | - ]; | |
| 71 | - | |
| 72 | - if ( $this->origin_prop_fields ) { | |
| 73 | - $result['originPropFields'] = [ | |
| 74 | - 'elType' => $this->origin_prop_fields['el_type'], | |
| 75 | - 'widgetType' => $this->origin_prop_fields['widget_type'], | |
| 76 | - 'propKey' => $this->origin_prop_fields['prop_key'], | |
| 77 | - 'elementId' => $this->origin_prop_fields['element_id'], | |
| 78 | - ]; | |
| 79 | - } | |
| 80 | - | |
| 81 | - return $result; | |
| 82 | - } | |
| 83 | 59 | } |