‪TYPO3CMS  ‪main
TYPO3\CMS\Fluid\ViewHelpers\Be\Security\IfAuthenticatedViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\ViewHelpers\Be\Security\IfAuthenticatedViewHelper:

Static Public Member Functions

static verdict (array $arguments, RenderingContextInterface $renderingContext)
 

Detailed Description

This ViewHelper implements an ifAuthenticated/else condition for backend users and backend groups.

Examples

Basic usage::

<f:be.security.ifAuthenticated> This is being shown whenever a BE user is logged in </f:be.security.ifAuthenticated>

Everything inside the :html:<f:be.ifAuthenticated> tag is being displayed if the user is authenticated with any backend user account.

IfAuthenticated / then / else::

<f:be.security.ifAuthenticated> <f:then> This is being shown in case you have access. </f:then> <f:else> This is being displayed in case you do not have access. </f:else> </f:be.security.ifAuthenticated>

Everything inside the :html:<f:then></f:then> is displayed the backend user is logged in. :html:<f:else></f:else> is displayed if no backend user is logged in.

Definition at line 53 of file IfAuthenticatedViewHelper.php.

Member Function Documentation

◆ verdict()

static TYPO3\CMS\Fluid\ViewHelpers\Be\Security\IfAuthenticatedViewHelper::verdict ( array  $arguments,
RenderingContextInterface  $renderingContext 
)
static

Definition at line 55 of file IfAuthenticatedViewHelper.php.

References $GLOBALS.