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

Static Protected Member Functions

static bool evaluateCondition ($arguments=null)
 

Detailed Description

This ViewHelper implements an ifAuthenticated/else condition for frontend users.

Examples

Basic usage

::

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

Everything inside the :html:<f:security.ifAuthenticated> tag is being displayed if current frontend user is authenticated.

IfAuthenticated / then / else

::

<f: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:security.ifAuthenticated>

Everything inside the :html:<f:then></f:then> tag is displayed if frontend user is authenticated. Otherwise, everything inside the :html:<f:else></f:else> tag is displayed.

Definition at line 57 of file IfAuthenticatedViewHelper.php.

Member Function Documentation

◆ evaluateCondition()

static bool TYPO3\CMS\Fluid\ViewHelpers\Security\IfAuthenticatedViewHelper::evaluateCondition (   $arguments = null)
staticprotected

This method decides if the condition is TRUE or FALSE. It can be overridden in extending viewhelpers to adjust functionality.

Parameters
array$arguments‪ViewHelper arguments to evaluate the condition for this ViewHelper, allows for flexibility in overriding this method.
Returns
‪bool

Definition at line 65 of file IfAuthenticatedViewHelper.php.