AvatarViewHelper

class \TYPO3\CMS\Backend\ViewHelpers\AvatarViewHelper

Extends
AbstractViewHelper
Uses
CompileWithRenderStatic

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 $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string

Parameters

$arguments : array
$renderChildrenClosure : Closure
$renderingContext : RenderingContextInterface

Return values

string
On this page