StandardPreviewRendererResolver
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.
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Properties
Methods
Properties
$tcaSchemaFactory read-only
protected
TcaSchemaFactory
$tcaSchemaFactory
Methods
__construct()
public
__construct(TcaSchemaFactory $tcaSchemaFactory) : mixed
Parameters
- $tcaSchemaFactory : TcaSchemaFactory
resolveRendererFor()
public
resolveRendererFor(RecordInterface $record) : PreviewRendererInterface
Parameters
- $record : RecordInterface
-
A record from $table which will be previewed - allows returning a different PreviewRenderer based on record attributes