Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
loadOptions example
$page
->
setProduct
(
$product
)
;
$page
->
setConfiguratorSettings
(
$result
->
getConfigurator
(
)
??
new
PropertyGroupCollection
(
)
)
;
$page
->
setNavigationId
(
$product
->
getId
(
)
)
;
if
(
!Feature::
isActive
(
'v6.6.0.0'
)
)
{
$this
->
loadDefaultAdditions
(
$product
,
$page
,
$request
,
$context
)
;
}
elseif
(
$cmsPage
=
$product
->
getCmsPage
(
)
)
{
$page
->
setCmsPage
(
$cmsPage
)
;
}
$this
->
loadOptions
(
$page
)
;
$this
->
loadMetaData
(
$page
)
;
$this
->eventDispatcher->
dispatch
(
new
ProductPageLoadedEvent
(
$page
,
$context
,
$request
)
)
;
return
$page
;
}
private
function
loadOptions
(
ProductPage
$page
)
: void
{