UsernameViewHelper extends AbstractViewHelper uses CompileWithRenderStatic

Get username from backend user id

Internal

Table of Contents

Properties

$usernameRuntimeCache  : array<string|int, mixed>
First level cache of user names

Methods

initializeArguments()  : mixed
Initializes the arguments
renderStatic()  : string
Resolve user name from backend user id.

Properties

$usernameRuntimeCache

First level cache of user names

protected static array<string|int, mixed> $usernameRuntimeCache = []

Methods

initializeArguments()

Initializes the arguments

public initializeArguments() : mixed

renderStatic()

Resolve user name from backend user id.

public static renderStatic(array{uid: int} $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string
Parameters
$arguments : array{uid: int}
$renderChildrenClosure : Closure
$renderingContext : RenderingContextInterface
Return values
string

Username or an empty string if there is no user with that UID


        
On this page

Search results