Skip to content
Snippets Groups Projects
Commit 13c67c45 authored by Claus Due's avatar Claus Due Committed by Georg Ringer
Browse files

[FEATURE] Introduce PreviewRenderer pattern

This introduces a new approach to registering and rendering
previews; for content elements initially but possible to apply
to any record type, and possible to call from other contexts
than the PageLayoutView, e.g. AJAX-based preview rendering.

Basically, this turns the old hook approach into a proper
pattern where preview renderers are registered for a specific
CType and must implement proper interfaces. A Resolver
pattern is also introduced with a standard implementation and
a standard renderer is registered for backwards compatibility.

Resolves: #78450
Releases: master
Change-Id: Ibf85d9b50b7bc6506d72c1ee63078373eaf9e433
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/50389


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarSusanne Moog <look@susi.dev>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent 7e342e74
Branches
Tags
No related merge requests found
Showing
with 847 additions and 199 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment