Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields | Protected Attributes
Config Class Reference

Public Member Functions

 __construct (ScopeConfigInterface $scopeConfig)
 
 isLoggingEnabled ()
 
 getSessionStorageKey ()
 

Data Fields

const WYSIWYG_EDITOR_CONFIG_PATH = 'cms/wysiwyg/editor'
 
const XML_PATH_LOGGING = 'dev/js/session_storage_logging'
 
const XML_PATH_KEY = 'dev/js/session_storage_key'
 

Protected Attributes

 $scopeConfig
 

Detailed Description

Definition at line 11 of file Config.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( ScopeConfigInterface  $scopeConfig)
Parameters
ScopeConfigInterface$scopeConfig

Definition at line 36 of file Config.php.

37  {
38  $this->scopeConfig = $scopeConfig;
39  }

Member Function Documentation

◆ getSessionStorageKey()

getSessionStorageKey ( )

Get session storage key

Returns
string

Definition at line 56 of file Config.php.

57  {
58  return $this->scopeConfig->getValue(self::XML_PATH_KEY);
59  }

◆ isLoggingEnabled()

isLoggingEnabled ( )

Is session storage logging enabled

Returns
bool

Definition at line 46 of file Config.php.

47  {
48  return $this->scopeConfig->getValue(self::XML_PATH_LOGGING);
49  }

Field Documentation

◆ $scopeConfig

$scopeConfig
protected

Definition at line 31 of file Config.php.

◆ WYSIWYG_EDITOR_CONFIG_PATH

const WYSIWYG_EDITOR_CONFIG_PATH = 'cms/wysiwyg/editor'

Wysiwyg editor configuration path

Definition at line 16 of file Config.php.

◆ XML_PATH_KEY

const XML_PATH_KEY = 'dev/js/session_storage_key'

Configuration path to session storage key setting

Definition at line 26 of file Config.php.

◆ XML_PATH_LOGGING

const XML_PATH_LOGGING = 'dev/js/session_storage_logging'

Configuration path to session storage logging setting

Definition at line 21 of file Config.php.


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