Provide teamslinksblock to other page then user page

Created on 23 January 2023, almost 2 years ago

Hi,

Nice job with this amazing O365 module.
It would be great to extend the TeamsLinksBlock to work on other pages then the user page.
I achieve that with testing the $user variable and use $user = \Drupal\user\Entity\User::load(\Drupal::currentUser()->id()); if we can't get the user from the route context.

Thanks.

Feature request
Status

Closed: works as designed

Version

3.0

Component

User interface

Created by

🇫🇷France xadag

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @xadag
  • 🇫🇷France xadag

    Hi,

    Nice job with this amazing O365 module.
    It would be great to extend the TeamsLinksBlock to work on other pages then the user page.
    I achieve that with testing the $user variable and use $user = \Drupal\user\Entity\User::load(\Drupal::currentUser()->id()); if we can't get the user from the route context.

    Thanks.

  • 🇳🇱Netherlands fabianderijk Alphen aan den Rijn

    We can do this, however, this goes past the meaning of this block. This was initially made to create call/chat links to other users. Of you would use the current user you would create links to yourself. This sounds a bit weird for me.

  • 🇫🇷France xadag

    Ok i see now it's clear for me thanks. I didn't understand the goal of this block :)

  • Status changed to Closed: works as designed almost 2 years ago
  • 🇳🇱Netherlands fabianderijk Alphen aan den Rijn

    No problem!

Production build 0.71.5 2024