Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Psr\Log\LoggerInterface $logger, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Framework\TranslateInterface $translator, \Magento\Framework\ObjectManagerInterface $objectManager, ConfigLoaderInterface $diConfigLoader, \Magento\Framework\App\DesignInterface $design, \Magento\Framework\App\ScopeResolverInterface $scopeResolver, \Magento\Framework\View\DesignExceptions $designExceptions, $areaCode) | |
load ($part=null) | |
detectDesign ($request=null) | |
Data Fields | |
const | AREA_GLOBAL = 'global' |
const | AREA_FRONTEND = 'frontend' |
const | AREA_ADMINHTML = 'adminhtml' |
const | AREA_DOC = 'doc' |
const | AREA_CRONTAB = 'crontab' |
const | AREA_WEBAPI_REST = 'webapi_rest' |
const | AREA_WEBAPI_SOAP = 'webapi_soap' |
const | AREA_GRAPHQL = 'graphql' |
const | AREA_ADMIN = 'admin' |
const | PARAM_AREA = 'area' |
![]() | |
const | PART_CONFIG = 'config' |
const | PART_TRANSLATE = 'translate' |
const | PART_DESIGN = 'design' |
Protected Member Functions | |
_applyUserAgentDesignException ($request) | |
_getDesign () | |
_loadPart ($part) | |
_initConfig () | |
_initTranslate () | |
_initDesign () | |
Protected Attributes | |
$_loadedParts | |
$_code | |
$_eventManager | |
$_translator | |
$_objectManager | |
$_diConfigLoader | |
$_logger | |
$_design | |
$_scopeResolver | |
$_designExceptions | |
Application area model
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
__construct | ( | \Psr\Log\LoggerInterface | $logger, |
\Magento\Framework\Event\ManagerInterface | $eventManager, | ||
\Magento\Framework\TranslateInterface | $translator, | ||
\Magento\Framework\ObjectManagerInterface | $objectManager, | ||
ConfigLoaderInterface | $diConfigLoader, | ||
\Magento\Framework\App\DesignInterface | $design, | ||
\Magento\Framework\App\ScopeResolverInterface | $scopeResolver, | ||
\Magento\Framework\View\DesignExceptions | $designExceptions, | ||
$areaCode | |||
) |
\Psr\Log\LoggerInterface | $logger | |
\Magento\Framework\Event\ManagerInterface | $eventManager | |
\Magento\Framework\TranslateInterface | $translator | |
\Magento\Framework\ObjectManagerInterface | $objectManager | |
ConfigLoaderInterface | $diConfigLoader | |
\Magento\Framework\App\DesignInterface | $design | |
\Magento\Framework\App\ScopeResolverInterface | $scopeResolver | |
\Magento\Framework\View\DesignExceptions | $designExceptions | |
string | $areaCode |
Definition at line 110 of file Area.php.
|
protected |
|
protected |
|
protected |
|
protected |
Initialize translate object.
Definition at line 243 of file Area.php.
|
protected |
Loading part of area
string | $part |
Definition at line 202 of file Area.php.
detectDesign | ( | $request = null | ) |
Detect and apply design for the area
\Magento\Framework\App\RequestInterface | $request |
Definition at line 154 of file Area.php.
load | ( | $part = null | ) |
Load area data
string | null | $part |
Implements AreaInterface.
Definition at line 138 of file Area.php.
const AREA_ADMIN = 'admin' |