AvatarViewHelper extends AbstractViewHelper
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
- render() : 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
render()
Resolve user avatar from a given backend user id.
public
render() : string