final class O365ProfileTeamsService

The service too connect Teams with profiles.

Traits

StringTranslationTrait

Methods

__construct(RendererInterface $renderer, ConfigFactoryInterface $configFactory)

Our class constructor.

array|bool|MarkupInterface
generateTeamsLink(UserInterface $user, string $type = 'chat', mixed $text = FALSE, bool $render = FALSE)

Generate a link to interact with the user on Teams.

Details

at line 25
__construct(RendererInterface $renderer, ConfigFactoryInterface $configFactory)

Our class constructor.

Parameters

RendererInterface $renderer

The renderer interface.

ConfigFactoryInterface $configFactory

The config factory.

Generate a link to interact with the user on Teams.

Parameters

UserInterface $user

The user object.

string $type

The type of link to generate.

mixed $text

The text we want to use in the link, or FALSE for the default text.

bool $render

If we want the render array rendered or not.

Return Value

array|bool|MarkupInterface

The render array or FALSE.