mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-04 05:44:58 +00:00
Add phonenumber to user
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user