- Issue created by @mingsong
- Status changed to Needs work
9 months ago 8:13am 15 April 2024 - 🇧🇪Belgium svendecabooter Gent
You could use
\Drupal::service('externalauth.authmap')->getAll(\Drupal::currentUser()->id());
This will return an empty array if the current user is not linked with an external service, or an array keyed by provider ID if they are.
A more developer friendly service method could be added for this purpose I guess..
- Status changed to Fixed
8 months ago 1:32am 16 April 2024 Automatically closed - issue fixed for 2 weeks with no activity.