PageContentPreviewRenderingEvent¶
New in version 12.0: The PSR-14 event TYPO3\CMS\Backend\View\Event\PageContentPreviewRenderingEvent
has been introduced which serves as a drop-in replacement for the removed
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']
hook.
Use this event to ship an alternative rendering for a specific content type or to manipulate the record data of a content element.
API¶
- class TYPO3\CMS\Backend\View\Event\PageContentPreviewRenderingEvent¶
Use this Event to have a custom preview for a content type in the Page Module
- getTable()¶
- Return type
string
- getRecord()¶
- Return type
array
- setRecord(array $record)¶
- Parameters
$record (
array
) -- the record
- getPageLayoutContext()¶
- Return type
TYPO3\CMS\Backend\View\PageLayoutContext
- getPreviewContent()¶
- Return type
string
- setPreviewContent(string $content)¶
- Parameters
$content (
string
) -- the content
- isPropagationStopped()¶
- Return type
bool