/**
* @param FormInterface<Customer> $form
*/
private function isFastLogin(FormInterface
$form): bool
{ if ($form->
has('accountmode'
)) { return $form->
get('accountmode'
)->
getData() == Customer::ACCOUNT_MODE_FAST_LOGIN;
} $customer =
$form->
getData();
if ($customer instanceof Customer
) { return $customer->
getAccountMode() == Customer::ACCOUNT_MODE_FAST_LOGIN;
} return false;
} /**
* @param array $snippet A snippet with namespace, name and default value
*/
private function getSnippet(array
$snippet): string
{ return $this->snippets->
getNamespace($snippet['namespace'
])->
get($snippet['name'
],
$snippet['default'
], true
);
}