UsernameViewHelper extends AbstractViewHelper uses CompileWithRenderStatic

FinalYes

Get username from backend user id

Internal

Table of Contents

Properties

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

Methods

initializeArguments()  : void
Initializes the arguments
renderStatic()  : string
Resolve user name from backend user id. Can return empty string if there is no user with that UID.

Properties

$usernameRuntimeCache

First level cache of user names

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

Methods

initializeArguments()

Initializes the arguments

public initializeArguments() : void

renderStatic()

Resolve user name from backend user id. Can return empty string if there is no user with that UID.

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

        
On this page

Search results