Attention
TYPO3 v12 has reached end-of-life as of April 30th 2026 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v12 here: TYPO3 ELTS.
Mfa.ifHasState ViewHelper <be:mfa.ifHasState>
Note
This ViewHelper is not available by default.
Import its namespace
{namespace be=TYPO3\ in the Fluid file or
xmlns: in the opening HTML tag.
Internal
This ViewHelper is marked as internal. It is subject to be changed without notice. Use at your own risk.
Check if the given provider for the current user has the requested state set
Go to the source code of this ViewHelper: Mfa\IfHasStateViewHelper.php (GitHub).
Arguments
The following arguments are available for the mfa.ifHasState ViewHelper:
else
-
- Type
- mixed
Value to be returned if the condition if not met.
provider
-
- Type
- TYPO3\CMS\Core\Authentication\Mfa\MfaProviderManifestInterface
- Required
- 1
The provider in question
state
-
- Type
- string
- Required
- 1
The state to check for (e.g. active or locked)
then
-
- Type
- mixed
Value to be returned if the condition if met.