Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setIconSets example
$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'
]
)
;
}
}
catch
(
\Throwable
)
{
$config
=
new
StorefrontPluginConfiguration
(
$name
)
;
}
return
$config
;
}
private
function
createPluginConfig
(
string
$name
, string
$path
)
: StorefrontPluginConfiguration
{
$config
=
new
StorefrontPluginConfiguration
(
$name
)
;