← All changes
|
modules/atomic-widgets/elements/base/widget-builder.php
+0
-10
4.3.0-beta3
→
4.0.3
View file →
| @@ -6,9 +6,8 @@ | ||
| 6 | 6 | protected $widget_type; |
| 7 | 7 | protected $settings = []; |
| 8 | 8 | protected $is_locked = false; |
| 9 | 9 | protected $editor_settings = []; |
| 10 | - protected $meta = []; | |
| 11 | 10 | |
| 12 | 11 | public static function make( string $widget_type ) { |
| 13 | 12 | return new self( $widget_type ); |
| 14 | 13 | } |
| @@ -31,13 +30,8 @@ | ||
| 31 | 30 | $this->editor_settings = $editor_settings; |
| 32 | 31 | return $this; |
| 33 | 32 | } |
| 34 | 33 | |
| 35 | - public function meta( array $meta ) { | |
| 36 | - $this->meta = $meta; | |
| 37 | - return $this; | |
| 38 | - } | |
| 39 | - | |
| 40 | 34 | public function build() { |
| 41 | 35 | $widget_data = [ |
| 42 | 36 | 'elType' => 'widget', |
| 43 | 37 | 'widgetType' => $this->widget_type, |
| @@ -44,12 +38,8 @@ | ||
| 44 | 38 | 'settings' => $this->settings, |
| 45 | 39 | 'isLocked' => $this->is_locked, |
| 46 | 40 | 'editor_settings' => $this->editor_settings, |
| 47 | 41 | ]; |
| 48 | - | |
| 49 | - if ( ! empty( $this->meta ) ) { | |
| 50 | - $widget_data['meta'] = $this->meta; | |
| 51 | - } | |
| 52 | 42 | |
| 53 | 43 | return $widget_data; |
| 54 | 44 | } |
| 55 | 45 | } |