UsernameViewHelper extends AbstractViewHelper uses CompileWithRenderStatic
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <.typo3.cms.belog.s.username>
Get username from backend user id
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