Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setViewInheritance example
if
(
\
array_key_exists
(
'previewMedia',
$data
)
)
{
$config
->
setPreviewMedia
(
$basePath
. \DIRECTORY_SEPARATOR .
$data
[
'previewMedia'
]
)
;
}
if
(
\
array_key_exists
(
'config',
$data
)
)
{
$config
->
setThemeConfig
(
$data
[
'config'
]
)
;
}
if
(
\
array_key_exists
(
'views',
$data
)
)
{
$config
->
setViewInheritance
(
$data
[
'views'
]
)
;
}
if
(
\
array_key_exists
(
'configInheritance',
$data
)
)
{
$config
->
setConfigInheritance
(
$data
[
'configInheritance'
]
)
;
$baseConfig
=
$config
->
getThemeConfig
(
)
;
$baseConfig
[
'configInheritance'
]
=
$data
[
'configInheritance'
]
;
$config
->
setThemeConfig
(
$baseConfig
)
;
}
if
(
\
array_key_exists
(
'iconSets',
$data
)
)
{
$config
->
setIconSets
(
$data
[
'iconSets'
]
)
;
}