$link =
$router->
assemble([ 'sViewport' => 'register',
'action' => 'confirmValidation',
'sConfirmation' =>
$hash,
]);
// Should be compatible with the sREGISTERCONFIRMATION context
$context =
[ 'sConfirmLink' =>
$link,
'email' =>
$customer->
getEmail(),
'sMAIL' =>
$customer->
getEmail(),
'firstname' =>
$customer->
getFirstname(),
'lastname' =>
$customer->
getLastname(),
'salutation' =>
$customer->
getSalutation(),
'customer_type' =>
$customer->
getCustomerType(),
'additional' =>
[ 'customer_type' =>
$customer->
getCustomerType(),
],
'accountmode' =>
$customer->
getAccountMode(),
];
$address =
$customer->
getDefaultBillingAddress();
if ($address) {