‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Preview\StandardPreviewRendererResolver Class Reference

Public Member Functions

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

Detailed Description

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 31 of file StandardPreviewRendererResolver.php.

Member Function Documentation

◆ resolveRendererFor()

TYPO3\CMS\Backend\Preview\StandardPreviewRendererResolver::resolveRendererFor ( string  $table,
array  $row,
int  $pageUid 
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

Definition at line 40 of file StandardPreviewRendererResolver.php.

References $GLOBALS, and $tca.