# Mentions::mentions_to_names()

Replace `@username` in plain text with the member's display name (teams and groups with their name), as the feed shows them.

Used for text that cannot hold links, such as notification lines. Mentions that do not resolve stay as typed.

```php
mentions_to_names( string $text ): string
```

## Parameters

- `$text` (string) Plain text.

## Return

`string` 

## Changelog

| Version | Description |
| --- | --- |
| 1.6.0 | Introduced |
