Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
translateConfigSet example
->
setParameter
(
'templateId',
$template
->
getId
(
)
)
;
$themes
=
$builder
->
getQuery
(
)
->
getArrayResult
(
)
;
$namespace
=
$this
->
getConfigSnippetNamespace
(
$template
)
;
$namespace
->
read
(
)
;
foreach
(
$themes
as
&
$theme
)
{
$theme
=
$this
->
translateThemeData
(
$theme
,
$namespace
)
;
foreach
(
$theme
[
'configSets'
]
as
&
$set
)
{
$set
=
$this
->
translateConfigSet
(
$set
,
$namespace
)
;
}
}
$instance
=
$this
->util->
getThemeByTemplate
(
$template
)
;
if
(
$template
->
getParent
(
)
instanceof Template &&
$instance
->
useInheritanceConfig
(
)
)
{
$themes
=
array_merge
(
$themes
,
$this
->
getConfigSets
(
$template
->
getParent
(
)
)
)
;