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

Public Member Functions

 __construct (\Magento\Framework\App\RequestInterface $request, \Magento\Framework\App\AreaList $areaList, \Magento\Framework\App\State $appState)
 
 load ()
 

Protected Attributes

 $_request
 
 $_areaList
 
 $appState
 

Detailed Description

Definition at line 8 of file DesignLoader.php.

Constructor & Destructor Documentation

◆ __construct()

Parameters
\Magento\Framework\App\RequestInterface$request
\Magento\Framework\App\AreaList$areaList
\Magento\Framework\App\State$appState

Definition at line 36 of file DesignLoader.php.

40  {
41  $this->_request = $request;
42  $this->_areaList = $areaList;
43  $this->appState = $appState;
44  }

Member Function Documentation

◆ load()

load ( )

Load design

Returns
void

Definition at line 51 of file DesignLoader.php.

52  {
53  $area = $this->_areaList->getArea($this->appState->getAreaCode());
54  $area->load(\Magento\Framework\App\Area::PART_DESIGN);
55  $area->load(\Magento\Framework\App\Area::PART_TRANSLATE);
56  $area->detectDesign($this->_request);
57  }

Field Documentation

◆ $_areaList

$_areaList
protected

Definition at line 22 of file DesignLoader.php.

◆ $_request

$_request
protected

Definition at line 15 of file DesignLoader.php.

◆ $appState

$appState
protected

Definition at line 29 of file DesignLoader.php.


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