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.
Application type
The
application request attribute helps to answer the question:
"Is this a frontend or backend request?". It is available in a frontend and
backend context.
1- It is a frontend request.
2- It is a backend request.
Example:
$applicationType = $request->getAttribute('applicationType');
if ($applicationType === 1) {
// We are in frontend context
} else {
// We are in backend context
}
Copied!