title | issue |
---|---|
Add theme config inheritance |
NEXT-17637 |
- Added
currentThemeConfig
prop to/src/modules/sw-theme-manager/page/sw-theme-manager-detail/index.js
to hold the configuration of the current theme without the inheritances. - Added
sw-inherit-wrapper
to all config fields insrc/modules/sw-theme-manager/page/sw-theme-manager-detail/sw-theme-manager-detail.html.twig
. - Changed snippet for
sw-theme-manager.detail.inheritanceInfo
.
- Added
configInheritance
property tosrc/Storefront/Theme/StorefrontPluginConfiguration/StorefrontPluginConfiguration.php
- Changed
\Shopware\Storefront\Theme\ThemeLifecycleService::refreshTheme
to add the parentId to a new activated theme if theconfigInheritance
configuration is set in thetheme.json
. - Changed
\Shopware\Storefront\Theme\ThemeService::getThemeConfiguration
by adding two new keys to the return arraycurrentFields
holding only the values configured in the current theme. Not configured fields are set to null.baseThemeFields
holding only the values configured in parent themes. Not configured fields are set to null.