← All changes
|
modules/atomic-widgets/controls/section.php
+2
-7
4.3.0-beta3
→
3.35.0-dev2
View file →
| @@ -32,12 +32,8 @@ | ||
| 32 | 32 | |
| 33 | 33 | return $this; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - public function get_label(): ?string { | |
| 37 | - return $this->label; | |
| 38 | - } | |
| 39 | - | |
| 40 | 36 | public function set_description( string $description ): self { |
| 41 | 37 | $this->description = html_entity_decode( $description ); |
| 42 | 38 | |
| 43 | 39 | return $this; |
| @@ -62,12 +58,11 @@ | ||
| 62 | 58 | public function jsonSerialize(): array { |
| 63 | 59 | return [ |
| 64 | 60 | 'type' => 'section', |
| 65 | 61 | 'value' => [ |
| 66 | - 'id' => $this->id, | |
| 67 | - 'label' => $this->label, | |
| 62 | + 'label' => $this->label, | |
| 68 | 63 | 'description' => $this->description, |
| 69 | - 'items' => $this->items, | |
| 64 | + 'items' => $this->items, | |
| 70 | 65 | ], |
| 71 | 66 | ]; |
| 72 | 67 | } |
| 73 | 68 | } |