PreviewRendererResolverInterface

Interface PreviewRendererResolverInterface

Contract for classes capable of resolving PreviewRenderInterface implementations based on table and record.

Table of Contents

Methods

resolveRendererFor()  : PreviewRendererInterface

Methods

resolveRendererFor()

public resolveRendererFor(string $table, array<string|int, mixed> $row, int $pageUid) : PreviewRendererInterface
Parameters
$table : string

The name of the table the returned PreviewRenderer must work with

$row : array<string|int, mixed>

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

Return values
PreviewRendererInterface

        
On this page

Search results