59 $this->assetRepo->updateDesignParams(
$params);
60 $viewConfigParams = [];
62 if (isset(
$params[
'themeModel'])) {
64 $currentTheme =
$params[
'themeModel'];
65 $key = $currentTheme->getFullPath();
66 if (isset($this->viewConfigs[$key])) {
67 return $this->viewConfigs[$key];
69 $viewConfigParams[
'themeModel'] = $currentTheme;
71 $viewConfigParams[
'area'] = (isset(
$params[
'area'])) ?
$params[
'area'] :
null;
74 $config = $this->viewConfigFactory->create($viewConfigParams);
77 $this->viewConfigs[$key] =
$config;
__construct(Repository $assetRepo, ViewFactory $viewConfigFactory)
getViewConfig(array $params=[])
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]