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
__construct()
public
__construct(BackendLayoutView $backendLayoutView) : mixed
Parameters
- $backendLayoutView : BackendLayoutView
processCmdmap_beforeStart()
public
processCmdmap_beforeStart(DataHandler $dataHandler) : void
Parameters
- $dataHandler : DataHandler
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