PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.0-beta3
Elementor Website Builder – more than just a page builder v4.3.0-beta3
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
elementor / modules / atomic-widgets / plain-resolvers / plain-resolver-base.php

plain-resolver-base.php in Elementor Website Builder – more than just a page builder 4.3.0-beta3, at modules/atomic-widgets/plain-resolvers/plain-resolver-base.php

25 lines 981 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Elementor\Modules\AtomicWidgets\PlainResolvers;
4
5 if ( ! defined( 'ABSPATH' ) ) {
6 exit;
7 }
8
9 /**
10 * Converts a plain LLM-supplied value into a form the walker can attach to a `Prop_Type` tree.
11 *
12 * Implementations MAY return either:
13 * - A **raw value** (scalar or shape-only array) — leaves like `String`, `Number`, `Html_V3`
14 * do this. `Plain_Values_Resolver::normalize_resolver_output` will wrap the result with
15 * `Prop_Type::generate()` to produce the `{ $$type, value }` envelope.
16 * - A **fully-formed envelope** (`[ '$$type' => ..., 'value' => ... ]`) — composite resolvers like
17 * `Dynamic` do this when the resolver alone knows the exact key/shape and short-circuits the walker.
18 *
19 * Return `null` to signal that the input can't be resolved for this prop type; the walker will
20 * treat it as a skip (or drop the field from the parent object/array).
21 */
22 abstract class Plain_Resolver_Base {
23 abstract public function resolve( $plain_value );
24 }
25