#110369Remove internal from public API for backend preview
Description
TYPO3 has a way to alter the rendering of TCA records via a public API as documented at: https://docs.typo3.org/permalink/t3tca:confval-ctrl-previewrenderer. This references the public Interface TYPO3\CMS\Backend\Preview\PreviewRendererInterface https://docs.typo3.org/permalink/t3coreapi:configurece-preview-preview-renderer which I would consider public API.
This interface now has type hints to classes which are marked as @internal, leading to a public API forcing users into using internal API, which seems incompatible to me.
So either the whole concept and interface is not public yet, or the internal classes should become public, which I would prefer.
Mainly: TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem @internal this is experimental and subject to change in TYPO3 v10 / v11
But it would also be cool if other classes can be made public as well, as it is very likely that those will be used in that context:
- TYPO3\CMS\Backend\View\BackendLayout\Grid\Grid @internal this is experimental and subject to change in TYPO3 v10 / v11
- TYPO3\CMS\Backend\View\BackendLayout\Grid\GridRow @internal this is experimental and subject to change in TYPO3 v10 / v11
- TYPO3\CMS\Backend\View\BackendLayout\Grid\AbstractGridObject @internal this is experimental and subject to change in TYPO3 v10 / v11
This was reported by PHPStan and reveals that developers need to take extra care during each update to check compatibility.
Reviews 1
History 46
-
Daniel Siepmann changed subject
Remove internal from public APIRemove internal from public API for backend preview <span data-processor="relativetime" data-value="2026-08-04T08:18:50+00:00" > 08/04/26, 08:18 </span> -
Daniel Siepmann changed description <span data-processor="relativetime" data-value="2026-08-04T08:20:25+00:00" > 08/04/26, 08:20 </span>
-
Daniel Siepmann changed description <span data-processor="relativetime" data-value="2026-08-04T08:21:19+00:00" > 08/04/26, 08:21 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 95097 status
NewUnder Review <span data-processor="relativetime" data-value="2026-08-04T08:25:17+00:00" > 08/04/26, 08:25 </span> -
Daniel Siepmann commented <span data-processor="relativetime" data-value="2026-08-11T09:43:30+00:00" > 08/11/26, 09:43 </span>
-
Gerrit Code Review pushed patch set 2 for main to change 95097 <span data-processor="relativetime" data-value="2026-08-11T09:44:43+00:00" > 08/11/26, 09:44 </span>
I just noticed that
TYPO3\CMS\Backend\View\PageLayoutContexthas the same issue and is provided byTYPO3\CMS\Backend\View\BackendLayout\Grid\AbstractGridObject