Deprecation: #97531 - Context-related methods within TypoScriptFrontendController¶
One of the main classes within TYPO3 Frontend —
had various short-hand functionality to access the Context API.
This is mainly for historical reasons, before the Context API was introduced in TYPO3 v9.
For this reason, the related methods have been marked as deprecated:
Calling the methods directly will trigger a PHP
TYPO3 installations with custom extensions using one of the methods. The extension scanner will report any usage as weak match.
Migrate towards the Context API instead:
// Is this request within a Workspace currently $context->getPropertyFromAspect('workspace', 'isOffline', false); // Is a frontend user logged in $context->getPropertyFromAspect('frontend.user', 'isLoggedIn', false);