Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
CustomerGroupRegistrationPageLoadedEvent example
$metaDescription
=
$page
->
getGroup
(
)
->
getTranslation
(
'registrationSeoMetaDescription'
)
;
if
(
$metaDescription
)
{
$page
->
getMetaInformation
(
)
->
setMetaDescription
(
$metaDescription
)
;
}
$title
=
$page
->
getGroup
(
)
->
getTranslation
(
'registrationTitle'
)
;
if
(
$title
)
{
$page
->
getMetaInformation
(
)
->
setMetaTitle
(
$title
)
;
}
}
$this
->eventDispatcher->
dispatch
(
new
CustomerGroupRegistrationPageLoadedEvent
(
$page
,
$salesChannelContext
,
$request
)
)
;
return
$page
;
}
public
function
getDecorated
(
)
: AbstractCustomerGroupRegistrationPageLoader
{
throw
new
DecorationPatternException
(
self::
class
)
;
}
}