PageContentPreviewRenderingEvent implements StoppableEventInterface
FinalYes
Use this Event to have a custom preview for a content type in the Page Module
Table of Contents
Interfaces
- StoppableEventInterface
Methods
- __construct() : mixed
- getPageLayoutContext() : PageLayoutContext
- getPreviewContent() : string|null
- getRecord() : array<string|int, mixed>
- getTable() : string
- isPropagationStopped() : bool
- setPreviewContent() : void
- setRecord() : void
Methods
__construct()
public
__construct(string $table, array<string|int, mixed> $record, PageLayoutContext $context) : mixed
Parameters
- $table : string
- $record : array<string|int, mixed>
- $context : PageLayoutContext
getPageLayoutContext()
public
getPageLayoutContext() : PageLayoutContext
Return values
PageLayoutContextgetPreviewContent()
public
getPreviewContent() : string|null
Return values
string|nullgetRecord()
public
getRecord() : array<string|int, mixed>
Return values
array<string|int, mixed>getTable()
public
getTable() : string
Return values
stringisPropagationStopped()
public
isPropagationStopped() : bool
Return values
boolsetPreviewContent()
public
setPreviewContent(string $content) : void
Parameters
- $content : string
setRecord()
public
setRecord(array<string|int, mixed> $record) : void
Parameters
- $record : array<string|int, mixed>