|
MediaWiki 1.44.0
|
Service class that renders HTML for user-related links. More...
Public Member Functions | |
| __construct (TempUserConfig $tempUserConfig, SpecialPageFactory $specialPageFactory, LinkRenderer $linkRenderer, TempUserDetailsLookup $tempUserDetailsLookup) | |
| userLink (UserIdentity $targetUser, IContextSource $context, ?string $altUserName=null, array $attributes=[]) | |
| Render a user page link (or user contributions for anonymous and temporary users). | |
Service class that renders HTML for user-related links.
Definition at line 24 of file UserLinkRenderer.php.
| MediaWiki\Linker\UserLinkRenderer::__construct | ( | TempUserConfig | $tempUserConfig, |
| SpecialPageFactory | $specialPageFactory, | ||
| LinkRenderer | $linkRenderer, | ||
| TempUserDetailsLookup | $tempUserDetailsLookup ) |
Definition at line 38 of file UserLinkRenderer.php.
| MediaWiki\Linker\UserLinkRenderer::userLink | ( | UserIdentity | $targetUser, |
| IContextSource | $context, | ||
| ?string | $altUserName = null, | ||
| array | $attributes = [] ) |
Render a user page link (or user contributions for anonymous and temporary users).
Returns potentially cached link HTML.
| UserIdentity | $targetUser | The user to render a link for. |
| IContextSource | $context | |
| string | null | $altUserName | Optional text to display instead of the user name, or null to use the user name. |
| string[] | $attributes | Optional extra HTML attributes for the link. |
Definition at line 65 of file UserLinkRenderer.php.