Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
setThumbnailHighDpiQuality example
$thumbnailSizes
=
$parentSettings
->
getThumbnailSize
(
)
;
$thumbnailHighDpi
=
$parentSettings
->
isThumbnailHighDpi
(
)
;
$thumbnailHighDpiQuality
=
$parentSettings
->
getThumbnailHighDpiQuality
(
)
;
$thumbnailQuality
=
$parentSettings
->
getThumbnailQuality
(
)
;
$createThumbnails
=
$parentSettings
->
getCreateThumbnails
(
)
;
}
$settings
->
setCreateThumbnails
(
$createThumbnails
)
;
$settings
->
setThumbnailSize
(
empty
(
$thumbnailSizes
)
? '' :
$thumbnailSizes
)
;
$settings
->
setThumbnailHighDpi
(
$thumbnailHighDpi
)
;
$settings
->
setThumbnailQuality
(
$thumbnailQuality
)
;
$settings
->
setThumbnailHighDpiQuality
(
$thumbnailHighDpiQuality
)
;
$settings
->
setIcon
(
$icon
)
;
$data
[
'settings'
]
=
$settings
;
return
$data
;
}
/** * Helper method to prefix properties * * @param string $prefix * * @return array */