|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (ReaderInterface $reader, CacheInterface $cache, $cacheId, SerializerInterface $serializer=null) | |
| merge (array $config) | |
| get ($path=null, $default=null) | |
| reset () | |
Protected Member Functions | |
| initData () | |
Protected Attributes | |
| $_reader | |
| $_cache | |
| $_cacheId | |
| $cacheTags = [] | |
| $_data = [] | |
Represents loaded and cached configuration data, should be used to gain access to different types
@SuppressWarnings(PHPMD.NumberOfChildren) @api
| __construct | ( | ReaderInterface | $reader, |
| CacheInterface | $cache, | ||
| $cacheId, | |||
| SerializerInterface | $serializer = null |
||
| ) |
Constructor
| ReaderInterface | $reader | |
| CacheInterface | $cache | |
| string | $cacheId | |
| SerializerInterface | null | $serializer |
Definition at line 83 of file Data.php.
| get | ( | $path = null, |
|
$default = null |
|||
| ) |
Get config value by key
| string | $path | |
| mixed | $default |
Implements DataInterface.
Definition at line 132 of file Data.php.
|
protected |
| merge | ( | array | $config | ) |
Merge config data to the object
| array | $config |
Implements DataInterface.
Definition at line 120 of file Data.php.
| reset | ( | ) |