PreviewRendererResolverInterface
interface \
Interface PreviewRendererResolverInterface
Contract for classes capable of resolving PreviewRenderInterface implementations based on table and record.
Table of Contents
Methods
Methods
resolveRendererFor()
public
resolveRendererFor(string $table, array $row, int $pageUid) : PreviewRendererInterface
Parameters
- $table : string
-
The name of the table the returned PreviewRenderer must work with
- $row : array
-
A record from $table which will be previewed - allows returning a different PreviewRenderer based on record attributes
- $pageUid : int
-
The UID of the page on which the preview will be rendered - allows returning a different PreviewRenderer based on for example pageTSconfig