replace the deprecated property :php:TypoScriptFrontendController->fePreview
The Context API has a new Aspect called "frontend.preview". It can be used to determine whether the frontend is currently in preview mode.
.. code-block:: php
GeneralUtility::makeInstance(Context::class)->getPropertyFromAspect('frontend.preview', 'isPreview');
replace the deprecated property :php:
TypoScriptFrontendController->fePreview
The Context API has a new Aspect called "frontend.preview". It can be used to determine whether the frontend is currently in preview mode. .. code-block:: php GeneralUtility::makeInstance(Context::class)->getPropertyFromAspect('frontend.preview', 'isPreview');