CustomFileControlsEvent

New in version 12.0

This event replaces the customControls hook option, which is only available for TCA type inline.

Listeners to the PSR-14 event \TYPO3\CMS\Backend\Form\Event\CustomFileControlsEvent are able to add custom controls to a TCA type file field in form engine.

Custom controls are always displayed below the file references. In contrast to the selectors, e.g. Select & upload files are custom controls independent of the readonly and showFileSelectors options. This means, you have full control in which scenario your custom controls are being displayed.

Example

API

class \TYPO3\CMS\Backend\Form\Event\ CustomFileControlsEvent

Listeners to this Event will be able to add custom controls to a TCA type="file" field in FormEngine

getResultArray ( )
returntype

array

setResultArray ( array $resultArray)

WARNING: Modifying the result array should be used with care. It mostly only exists to allow additional $resultArray['javaScriptModules'].

param array $resultArray

the resultArray

getControls ( )
returntype

array

setControls ( array $controls)
param array $controls

the controls

addControl ( string $control, string $identifier = '')
param string $control

the control

param string $identifier

the identifier, default: ''

removeControl ( string $identifier)
param string $identifier

the identifier

returntype

bool

getTableName ( )
returntype

string

getFieldName ( )
returntype

string

getDatabaseRow ( )
returntype

array

getFieldConfig ( )
returntype

array

getFormFieldIdentifier ( )
returntype

string

getFormFieldName ( )
returntype

string