AfterPageContentPreviewRenderedEvent
FinalYes
Use this Event to modify a custom preview for a content type in the Page Module after PageContentPreviewRenderingEvent and content preview rendering is executed.
Table of Contents
Methods
- __construct() : mixed
- getPageLayoutContext() : PageLayoutContext
- getPreviewContent() : string
- getRecord() : RecordInterface
- getRecordType() : string
- getTable() : string
- setPreviewContent() : void
Methods
__construct()
public
__construct(string $table, string $recordType, RecordInterface $record, PageLayoutContext $context, string $previewContent) : mixed
Parameters
- $table : string
- $recordType : string
- $record : RecordInterface
- $context : PageLayoutContext
- $previewContent : string
getPageLayoutContext()
public
getPageLayoutContext() : PageLayoutContext
Return values
PageLayoutContextgetPreviewContent()
public
getPreviewContent() : string
Return values
stringgetRecord()
public
getRecord() : RecordInterface
Return values
RecordInterfacegetRecordType()
public
getRecordType() : string
Return values
stringgetTable()
public
getTable() : string
Return values
stringsetPreviewContent()
public
setPreviewContent(string $content) : void
Parameters
- $content : string