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

Public Member Functions

 __construct (array $data=[])
 
 getAllowedLocales ()
 
 getAllowedCurrencies ()
 

Protected Attributes

 $_allowedLocales
 
 $_allowedCurrencies
 

Detailed Description

Definition at line 8 of file Config.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( array  $data = [])
Parameters
array$data

Definition at line 289 of file Config.php.

290  {
291  if (isset($data['allowedLocales']) && is_array($data['allowedLocales'])) {
292  $this->_allowedLocales = array_merge($this->_allowedLocales, $data['allowedLocales']);
293  }
294 
295  if (isset($data['allowedCurrencies']) && is_array($data['allowedCurrencies'])) {
296  $this->_allowedCurrencies = array_merge($this->_allowedCurrencies, $data['allowedCurrencies']);
297  }
298  }

Member Function Documentation

◆ getAllowedCurrencies()

getAllowedCurrencies ( )

Get list pre-configured allowed currencies

Returns
string[]

Implements ConfigInterface.

Definition at line 311 of file Config.php.

312  {
314  }

◆ getAllowedLocales()

getAllowedLocales ( )

Get list pre-configured allowed locales

Returns
string[]

Implements ConfigInterface.

Definition at line 303 of file Config.php.

304  {
305  return $this->_allowedLocales;
306  }

Field Documentation

◆ $_allowedCurrencies

$_allowedCurrencies
protected

Definition at line 113 of file Config.php.

◆ $_allowedLocales

$_allowedLocales
protected

Definition at line 15 of file Config.php.


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