PageContentPreviewRenderingEvent

final class \TYPO3\CMS\Backend\View\Event\PageContentPreviewRenderingEvent

Implements
StoppableEventInterface

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
getRecordType()  : string
getTable()  : string
isPropagationStopped()  : bool
setPreviewContent()  : void
setRecord()  : void

Methods

__construct()

public __construct(string $table, string $recordType, array $record, PageLayoutContext $context) : mixed

Parameters

$table : string
$recordType : string
$record : array
$context : PageLayoutContext

getPreviewContent()

public getPreviewContent() : string|null

Return values

string|null

getRecord()

public getRecord() : array

Return values

array

getRecordType()

public getRecordType() : string

Return values

string

getTable()

public getTable() : string

Return values

string

isPropagationStopped()

public isPropagationStopped() : bool

Return values

bool

setPreviewContent()

public setPreviewContent(string $content) : void

Parameters

$content : string

setRecord()

public setRecord(array $record) : void

Parameters

$record : array
On this page