‪TYPO3CMS  9.5
TYPO3\CMS\Beuser\Hook\SwitchBackUserHook Class Reference

Public Member Functions

 switchBack ($params, AbstractUserAuthentication $authentication)
 

Protected Member Functions

bool isAHandledBackendSession (AbstractUserAuthentication $authentication)
 

Detailed Description

Backend user switchback, for logoff_pre_processing hook within \TYPO3\CMS\Core\Authentication\AbstractUserAuthentication class

This class is a TYPO3 core-internal hook implementation and is not considered part of the Public TYPO3 API.

Definition at line 27 of file SwitchBackUserHook.php.

Member Function Documentation

◆ isAHandledBackendSession()

bool TYPO3\CMS\Beuser\Hook\SwitchBackUserHook::isAHandledBackendSession ( AbstractUserAuthentication  $authentication)
protected

Check if the given authentication object is a backend session and contains all necessary information to allow switching.

Parameters
AbstractUserAuthentication$authentication
Returns
‪bool

Definition at line 55 of file SwitchBackUserHook.php.

Referenced by TYPO3\CMS\Beuser\Hook\SwitchBackUserHook\switchBack().

◆ switchBack()

TYPO3\CMS\Beuser\Hook\SwitchBackUserHook::switchBack (   $params,
AbstractUserAuthentication  $authentication 
)

Switch backend user session.

Parameters
array$params
AbstractUserAuthentication$authentication
See also
‪AbstractUserAuthentication

Definition at line 36 of file SwitchBackUserHook.php.

References TYPO3\CMS\Beuser\Hook\SwitchBackUserHook\isAHandledBackendSession(), and TYPO3\CMS\Core\Utility\HttpUtility\redirect().