DataHandlerContentElementRestrictionHook

Read onlyYes

Handle content element CType restrictions based on backend layout (via "allowedContentTypes" and "disallowedContentTypes" backend layout column configuration). The hook removes the item from the job list if not allowed.

Attributes
#[Autoconfigure]
$public: true

Table of Contents

Methods

__construct()  : mixed
processCmdmap_beforeStart()  : void
processDatamap_preProcessFieldArray()  : void
Records are checked one by one when they are processed, not before DataHandler starts: records of table "pages" are processed first, so a "NEW..." pid of a content element on a new page can be resolved to the real page here, together with the backend layout of that page.

Methods

processDatamap_preProcessFieldArray()

Records are checked one by one when they are processed, not before DataHandler starts: records of table "pages" are processed first, so a "NEW..." pid of a content element on a new page can be resolved to the real page here, together with the backend layout of that page.

public processDatamap_preProcessFieldArray(array<string|int, mixed> &$incomingFieldArray, string $table, string|int $id, DataHandler $dataHandler) : void
Parameters
$incomingFieldArray : array<string|int, mixed>
$table : string
$id : string|int
$dataHandler : DataHandler
Tags
param-out

array|null $incomingFieldArray

On this page

Search results