Add phonenumber to user

This commit is contained in:
2023-11-16 15:12:12 +00:00
parent ff344dbb0c
commit be57c96a2f
13 changed files with 432 additions and 1 deletions

View File

@@ -29,6 +29,14 @@ class UserMenuBuilder implements LocalMenuBuilderInterface
$user = $this->security->getUser();
if ($user instanceof User) {
$menu->addChild($this->translator->trans('user.profile.title'), [
'route' => 'chill_main_user_profile',
])
->setExtras([
'order' => -11_111_111,
'icon' => 'user',
]);
if (null !== $user->getCurrentLocation()) {
$locationTextMenu = $user->getCurrentLocation()->getName();
} else {