‪TYPO3CMS  9.5
TYPO3\CMS\Beuser\ViewHelpers\SwitchUserViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\Beuser\ViewHelpers\SwitchUserViewHelper:

Public Member Functions

 initializeArguments ()
 

Static Public Member Functions

static string renderStatic (array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
 

Protected Attributes

bool $escapeOutput = false
 

Detailed Description

Displays 'SwitchUser' link with sprite icon to change current backend user to target (non-admin) backendUser

Definition at line 30 of file SwitchUserViewHelper.php.

Member Function Documentation

◆ initializeArguments()

TYPO3\CMS\Beuser\ViewHelpers\SwitchUserViewHelper::initializeArguments ( )

Initializes the arguments

Definition at line 42 of file SwitchUserViewHelper.php.

◆ renderStatic()

static string TYPO3\CMS\Beuser\ViewHelpers\SwitchUserViewHelper::renderStatic ( array  $arguments,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
static

Render link with sprite icon to change current backend user to target

Parameters
array$arguments
\Closure$renderChildrenClosure
RenderingContextInterface$renderingContext
Returns
‪string

Definition at line 56 of file SwitchUserViewHelper.php.

References $GLOBALS, TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, and TYPO3\CMS\Extbase\Utility\LocalizationUtility\translate().

Member Data Documentation

◆ $escapeOutput

bool TYPO3\CMS\Beuser\ViewHelpers\SwitchUserViewHelper::$escapeOutput = false
protected

As this ViewHelper renders HTML, the output must not be escaped.

Definition at line 37 of file SwitchUserViewHelper.php.