Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\View\Design\Theme\FlyweightFactory $flyweightFactory, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Theme\Model\ThemeFactory $themeFactory, \Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Framework\App\State $appState, array $themes) | |
setArea ($area) | |
getArea () | |
setDesignTheme ($theme, $area=null) | |
getConfigurationDesignTheme ($area=null, array $params=[]) | |
setDefaultDesignTheme () | |
getDesignTheme () | |
getThemePath (\Magento\Framework\View\Design\ThemeInterface $theme) | |
getLocale () | |
setLocale (\Magento\Framework\Locale\ResolverInterface $locale) | |
getDesignParams () | |
![]() | |
getThemePath (Design\ThemeInterface $theme) | |
Protected Attributes | |
$_area | |
$_theme | |
$_callbackFileDir | |
$_storeManager | |
$_flyweightFactory | |
$_themeFactory | |
$_locale | |
$objectManager | |
$_appState | |
Additional Inherited Members | |
![]() | |
const | DEFAULT_AREA = 'frontend' |
const | PUBLIC_VIEW_DIR = '_view' |
const | PUBLIC_THEME_DIR = '_theme' |
const | XML_PATH_THEME_ID = 'design/theme/theme_id' |
Keeps design settings for current request
Definition at line 15 of file Design.php.
__construct | ( | \Magento\Store\Model\StoreManagerInterface | $storeManager, |
\Magento\Framework\View\Design\Theme\FlyweightFactory | $flyweightFactory, | ||
\Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig, | ||
\Magento\Theme\Model\ThemeFactory | $themeFactory, | ||
\Magento\Framework\ObjectManagerInterface | $objectManager, | ||
\Magento\Framework\App\State | $appState, | ||
array | $themes | ||
) |
\Magento\Store\Model\StoreManagerInterface | $storeManager | |
\Magento\Framework\View\Design\Theme\FlyweightFactory | $flyweightFactory | |
\Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig | |
\Magento\Theme\Model\ThemeFactory | $themeFactory | |
\Magento\Framework\ObjectManagerInterface | $objectManager | |
\Magento\Framework\App\State | $appState | |
array | $themes |
Definition at line 85 of file Design.php.
getArea | ( | ) |
Retrieve package area
Implements DesignInterface.
Definition at line 121 of file Design.php.
getConfigurationDesignTheme | ( | $area = null , |
|
array | $params = [] |
||
) |
Get default theme which declared in configuration
Write default theme to core_config_data
string | null | $area | |
array | $params |
Implements DesignInterface.
Definition at line 163 of file Design.php.
getDesignParams | ( | ) |
{Get design settings for current request
Implements DesignInterface.
Definition at line 272 of file Design.php.
getDesignTheme | ( | ) |
Design theme model getter
Implements DesignInterface.
Definition at line 221 of file Design.php.
getLocale | ( | ) |
getThemePath | ( | \Magento\Framework\View\Design\ThemeInterface | $theme | ) |
{}
Definition at line 232 of file Design.php.
setArea | ( | $area | ) |
Set package area
string | $area |
Implements DesignInterface.
Definition at line 109 of file Design.php.
setDefaultDesignTheme | ( | ) |
Set default design theme
Implements DesignInterface.
Definition at line 210 of file Design.php.
setDesignTheme | ( | $theme, | |
$area = null |
|||
) |
Set theme path
\Magento\Framework\View\Design\ThemeInterface | string | $theme | |
string | $area |
Implements DesignInterface.
Definition at line 137 of file Design.php.
setLocale | ( | \Magento\Framework\Locale\ResolverInterface | $locale | ) |
\Magento\Framework\Locale\ResolverInterface | $locale |
Definition at line 263 of file Design.php.
|
protected |
Definition at line 74 of file Design.php.
|
protected |
Definition at line 22 of file Design.php.
|
protected |
Definition at line 37 of file Design.php.
|
protected |
Definition at line 49 of file Design.php.
|
protected |
Definition at line 64 of file Design.php.
|
protected |
Definition at line 44 of file Design.php.
|
protected |
Definition at line 29 of file Design.php.
|
protected |
Definition at line 54 of file Design.php.
|
protected |
Definition at line 69 of file Design.php.