Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Config Class Reference
Inheritance diagram for Config:
ConfigInterface

Public Member Functions

 __construct (DataInterface $data)
 
 get ($key=null, $default=null)
 

Detailed Description

Config of Analytics.

Definition at line 14 of file Config.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( DataInterface  $data)
Parameters
DataInterface$data

Definition at line 24 of file Config.php.

25  {
26  $this->data = $data;
27  }

Member Function Documentation

◆ get()

get (   $key = null,
  $default = null 
)

Get config value by key.

Parameters
string | null$key
string | null$default
Returns
array

Implements ConfigInterface.

Definition at line 36 of file Config.php.

37  {
38  return $this->data->get($key, $default);
39  }

The documentation for this class was generated from the following file: