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

Public Member Functions

 getAreaCode ()
 
 setAreaCode ($code)
 
 setMode ($mode)
 
- Public Member Functions inherited from State
 __construct (\Magento\Framework\Config\ScopeInterface $configScope, $mode=self::MODE_DEFAULT)
 
 getMode ()
 
 setIsDownloader ($flag=true)
 
 setAreaCode ($code)
 
 getAreaCode ()
 
 isAreaCodeEmulated ()
 
 emulateAreaCode ($areaCode, $callback, $params=[])
 

Additional Inherited Members

- Data Fields inherited from State
const PARAM_MODE = 'MAGE_MODE'
 
const MODE_DEVELOPER = 'developer'
 
const MODE_PRODUCTION = 'production'
 
const MODE_DEFAULT = 'default'
 
- Protected Attributes inherited from State
 $_appMode
 
 $_isDownloader = false
 
 $_updateMode = false
 
 $_configScope
 
 $_areaCode
 
 $_isAreaCodeEmulated = false
 

Detailed Description

Definition at line 12 of file State.php.

Member Function Documentation

◆ getAreaCode()

getAreaCode ( )

{}

Definition at line 17 of file State.php.

18  {
19  return $this->_areaCode;
20  }

◆ setAreaCode()

setAreaCode (   $code)

{}

Definition at line 25 of file State.php.

26  {
27  $this->_areaCode = $code;
28  $this->_configScope->setCurrentScope($code);
29  }
$code
Definition: info.phtml:12

◆ setMode()

setMode (   $mode)

{}

Definition at line 34 of file State.php.

35  {
36  $this->_appMode = $mode;
37  }
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode
Definition: grid.phtml:15

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