DataHandlerContentElementRestrictionHook
readonly class \
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 and TSconfig of that page.
Methods
__construct()
public
__construct(BackendLayoutView $backendLayoutView, DefaultValuesResolver $defaultValuesResolver) : mixed
Parameters
- $backendLayoutView : BackendLayoutView
- $defaultValuesResolver : DefaultValuesResolver
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 and TSconfig of that page.
public
processDatamap_preProcessFieldArray(array &$incomingFieldArray, string $table, string|int $id, DataHandler $dataHandler) : void
Parameters
- $incomingFieldArray : array
- $table : string
- $id : string|int
- $dataHandler : DataHandler