AvatarViewHelper extends AbstractViewHelper uses CompileWithRenderStatic
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <backend:avatar>
Render the avatar markup, including the :html:`<img>` tag, for a given backend user.
Examples
Default
::
<be:avatar backendUser="{user.uid}" size="32" showIcon="true" />
Output::
If the given backend user hasn't added a custom avatar yet, a default one is used.
Inline notation
::
{be:avatar(backendUser: user.id, size: 32, showIcon: 'true')}
Output::
Table of Contents
Properties
- $escapeOutput : bool
- As this ViewHelper renders HTML, the output must not be escaped.
Methods
- initializeArguments() : mixed
- Initializes the arguments
- renderStatic() : string
- Resolve user avatar from a given backend user id.
Properties
$escapeOutput
As this ViewHelper renders HTML, the output must not be escaped.
protected
bool
$escapeOutput
= false
Methods
initializeArguments()
Initializes the arguments
public
initializeArguments() : mixed
renderStatic()
Resolve user avatar from a given backend user id.
public
static renderStatic(array<string|int, mixed> $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string
Parameters
- $arguments : array<string|int, mixed>
- $renderChildrenClosure : Closure
- $renderingContext : RenderingContextInterface