Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setStoreExtension example
$storeExtensions
=
$this
->client->
listMyExtensions
(
$localCollection
,
$context
)
;
}
catch
(
\Throwable
)
{
return
;
}
foreach
(
$storeExtensions
->
getElements
(
)
as
$storeExtension
)
{
if
(
$localCollection
->
has
(
$storeExtension
->
getName
(
)
)
)
{
/** @var ExtensionStruct $localExtension */
$localExtension
=
$localCollection
->
get
(
$storeExtension
->
getName
(
)
)
;
$localExtension
->
setId
(
$storeExtension
->
getId
(
)
)
;
$localExtension
->
setIsTheme
(
$storeExtension
->
isTheme
(
)
)
;
$localExtension
->
setStoreExtension
(
$storeExtension
)
;
$localExtension
->
setStoreLicense
(
$storeExtension
->
getStoreLicense
(
)
)
;
$localExtension
->
setNotices
(
$storeExtension
->
getNotices
(
)
)
;
if
(
$storeExtension
->
getDescription
(
)
)
{
$localExtension
->
setDescription
(
$storeExtension
->
getDescription
(
)
)
;
}
if
(
$storeExtension
->
getShortDescription
(
)
)
{
$localExtension
->
setShortDescription
(
$storeExtension
->
getShortDescription
(
)
)
;
}