AvatarViewHelper extends AbstractViewHelper uses CompileWithRenderStatic
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <backend:avatar>
FinalYes
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() : void
- 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()
public
initializeArguments() : void
renderStatic()
Resolve user avatar from a given backend user id.
public
static renderStatic(array{backendUser: int, size: int, showIcon: bool} $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string
Parameters
- $arguments : array{backendUser: int, size: int, showIcon: bool}
- $renderChildrenClosure : Closure
- $renderingContext : RenderingContextInterface