TYPO3 v15 dev-main snapshot ()

This commit is contained in:
2026-08-10 22:31:09 +02:00
commit af8cc155b5
6818 changed files with 642608 additions and 0 deletions
@@ -0,0 +1,29 @@
.. include:: /Includes.rst.txt
.. _feature-88791:
====================================================
Feature: #88791 - Introduce PreviewAspect in Context
====================================================
See :issue:`88791`
Description
===========
A PreviewAspect for handling the preview flag has been introduced. This aspect may be used to indicate that the
frontend is in preview mode (for example in case a workspace is previewed or hidden pages or records should be shown).
Impact
======
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');
This Aspect replaces the now deprecated property :php:`TypoScriptFrontendController->fePreview`. Accessing this property
triggers a PHP :php:`E_USER_DEPRECATED` error, and fetches the information from the new Context Aspect instead.
.. index:: Frontend, PHP-API, ext:core