/var/www/html_de/wp-content/plugins/elementor/modules/variables/classes/variables.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

namespace Elementor\Modules\Variables\Classes;

use 
Elementor\Modules\Variables\Storage\Repository as Variables_Repository;

if ( ! 
defined'ABSPATH' ) ) {
    exit; 
// Exit if accessed directly.
}

class 
Variables {
    private static 
$lookup = [];

    public static function 
initVariables_Repository $repository ) {
        
self::$lookup $repository->variables();
    }

    public static function 
by_idstring $id ) {
        return 
self::$lookup$id ] ?? null;
    }
}