← All changes
|
modules/atomic-widgets/elements/base/element-builder.php
+0
-10
4.2.0
→
3.35.7
View file →
| @@ -7,9 +7,8 @@ | ||
| 7 | 7 | protected $settings = []; |
| 8 | 8 | protected $is_locked = false; |
| 9 | 9 | protected $children = []; |
| 10 | 10 | protected $editor_settings = []; |
| 11 | - protected $meta = []; | |
| 12 | 11 | |
| 13 | 12 | public static function make( string $element_type ) { |
| 14 | 13 | return new self( $element_type ); |
| 15 | 14 | } |
| @@ -37,13 +36,8 @@ | ||
| 37 | 36 | $this->children = $children; |
| 38 | 37 | return $this; |
| 39 | 38 | } |
| 40 | 39 | |
| 41 | - public function meta( array $meta ) { | |
| 42 | - $this->meta = $meta; | |
| 43 | - return $this; | |
| 44 | - } | |
| 45 | - | |
| 46 | 40 | public function build() { |
| 47 | 41 | $element_data = [ |
| 48 | 42 | 'elType' => $this->element_type, |
| 49 | 43 | 'settings' => $this->settings, |
| @@ -50,12 +44,8 @@ | ||
| 50 | 44 | 'isLocked' => $this->is_locked, |
| 51 | 45 | 'editor_settings' => $this->editor_settings, |
| 52 | 46 | 'elements' => $this->children, |
| 53 | 47 | ]; |
| 54 | - | |
| 55 | - if ( ! empty( $this->meta ) ) { | |
| 56 | - $element_data['meta'] = $this->meta; | |
| 57 | - } | |
| 58 | 48 | |
| 59 | 49 | return $element_data; |
| 60 | 50 | } |
| 61 | 51 | } |