Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
AccountPaymentMethodPageLoadedEvent example
$page
= AccountPaymentMethodPage::
createFrom
(
$page
)
;
if
(
$page
->
getMetaInformation
(
)
)
{
$page
->
getMetaInformation
(
)
->
setRobots
(
'noindex,follow'
)
;
}
if
(
$page
->
getSalesChannelPaymentMethods
(
)
)
{
$page
->
setPaymentMethods
(
$page
->
getSalesChannelPaymentMethods
(
)
->
filterByActiveRules
(
$salesChannelContext
)
)
;
}
$this
->eventDispatcher->
dispatch
(
new
AccountPaymentMethodPageLoadedEvent
(
$page
,
$salesChannelContext
,
$request
)
)
;
return
$page
;
}
}