UI Component configuration data
Definition at line 16 of file Data.php.
◆ __construct()
- Parameters
-
string | $componentName | |
ReaderFactory | $readerFactory | |
CacheInterface | $cache | |
SerializerInterface | $serializer | |
InterpreterInterface | $argumentInterpreter | |
Definition at line 74 of file Data.php.
81 $this->readerFactory = $readerFactory;
84 $this->componentName = $componentName;
85 $this->argumentInterpreter = $argumentInterpreter;
86 $this->cacheId = static::CACHE_ID .
'_' . $componentName;
◆ get()
get |
( |
|
$path = null , |
|
|
|
$default = null |
|
) |
| |
Get config value by key
- Parameters
-
string | $path | |
mixed | $default | |
- Returns
- mixed
Implements DataInterface.
Definition at line 133 of file Data.php.
135 if (empty($this->data)) {
138 if (
$path ===
null) {
141 $keys = explode(
'/',
$path);
143 foreach ($keys as $key) {
144 if (is_array(
$data) && array_key_exists($key,
$data)) {
◆ merge()
Merge config data to the object
- Parameters
-
- Returns
- void
Implements DataInterface.
Definition at line 121 of file Data.php.
123 $this->data = array_replace_recursive($this->
get(),
$config);
◆ CACHE_ID
const CACHE_ID = 'ui_component_configuration_data' |
ID in the storage cache
Definition at line 21 of file Data.php.
◆ SEARCH_PATTERN
const SEARCH_PATTERN = '%s.xml' |
The documentation for this class was generated from the following file:
- vendor/magento/module-ui/Config/Data.php