Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
translateThemeData example
->
innerJoin
(
'template.configSets', 'sets'
)
->
where
(
'sets.templateId = :templateId'
)
->
orderBy
(
'sets.name'
)
->
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
,