PluginProbe
Elementor Website Builder – more than just a page builder / 3.34.1
Elementor Website Builder – more than just a page builder v3.34.1
4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | modules/components/documents/component-overridable-props.php +0 -13 4.2.33.34.1 View file →
@@ -18,9 +18,8 @@
18 18 if ( empty( $overridable_props_meta ) ) {
19 19 $this->props = [];
20 20 $this->groups = [];
21 21
22 - return;
23 22 }
24 23
25 24 $formatted_props = array_map( function( array $overridable_prop ) {
26 25 return Component_Overridable_Prop::make( $overridable_prop );
@@ -31,18 +30,6 @@
31 30 }
32 31
33 32 public static function make( array $overridable_props_meta ): self {
34 33 return new self( $overridable_props_meta );
35 - }
36 -
37 - public function to_associative_array(): array {
38 - $props_map = [];
39 - foreach ( $this->props as $prop ) {
40 - $props_map[ $prop->override_key ] = $prop->to_associative_array();
41 - }
42 -
43 - return [
44 - 'props' => $props_map,
45 - 'groups' => $this->groups,
46 - ];
47 34 }
48 35 }