PluginProbe
Elementor Website Builder – more than just a page builder / 3.32.5
Elementor Website Builder – more than just a page builder v3.32.5
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 4.0.7 All 451 releases
elementor / modules / variables / classes / variables.php

variables.php in Elementor Website Builder – more than just a page builder 3.32.5, at modules/variables/classes/variables.php

22 lines 458 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\Variables\Classes;
4
5 use Elementor\Modules\Variables\Storage\Repository as Variables_Repository;
6
7 if ( ! defined( 'ABSPATH' ) ) {
8 exit; // Exit if accessed directly.
9 }
10
11 class Variables {
12 private static $lookup = [];
13
14 public static function init( Variables_Repository $repository ) {
15 self::$lookup = $repository->variables();
16 }
17
18 public static function by_id( string $id ) {
19 return self::$lookup[ $id ] ?? null;
20 }
21 }
22