‪TYPO3CMS  10.4
TYPO3\CMS\Backend\Preview\StandardPreviewRendererResolver Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Preview\StandardPreviewRendererResolver:
TYPO3\CMS\Backend\Preview\PreviewRendererResolverInterface

Public Member Functions

PreviewRendererInterface resolveRendererFor (string $table, array $row, int $pageUid)
 

Detailed Description

Class StandardPreviewRendererResolver

Default implementation of PreviewRendererResolverInterface. Scans TCA configuration to detect:

  • ‪TCA.$table.types.$typeFromTypeField.previewRenderer
  • ‪TCA.$table.ctrl.previewRenderer

Depending on which one is defined and checking the first, type-specific variant first.

Definition at line 34 of file StandardPreviewRendererResolver.php.

Member Function Documentation

◆ resolveRendererFor()

PreviewRendererInterface TYPO3\CMS\Backend\Preview\StandardPreviewRendererResolver::resolveRendererFor ( string  $table,
array  $row,
int  $pageUid 
)
Parameters
string$table‪The name of the table the returned PreviewRenderer must work with
array$row‪A record from $table which will be previewed - allows returning a different PreviewRenderer based on record attributes
int$pageUid‪The UID of the page on which the preview will be rendered - allows returning a different PreviewRenderer based on for example pageTSconfig
Returns
PreviewRendererInterface
Exceptions

Implements TYPO3\CMS\Backend\Preview\PreviewRendererResolverInterface.

Definition at line 44 of file StandardPreviewRendererResolver.php.

References $GLOBALS, and $tca.