CustomFileControlsEvent
final class \
Listeners to this Event will be able to add custom controls to a TCA type="file" field in FormEngine
Table of Contents
Methods
- __construct() : mixed
- addControl() : void
- getControls() : array
- getDatabaseRow() : array
- getFieldConfig() : array
- getFieldName() : string
- getFormFieldIdentifier() : string
- getFormFieldName() : string
- getResultArray() : array
- getTableName() : string
- removeControl() : bool
- setControls() : void
- setResultArray() : void
- WARNING: Modifying the result array should be used with care. It mostly only exists to allow additional $resultArray['javaScriptModules'].
Methods
__construct()
public
__construct(array $resultArray, string $tableName, string $fieldName, array $databaseRow, array $fieldConfig, string $formFieldIdentifier, string $formFieldName) : mixed
Parameters
- $resultArray : array
- $tableName : string
- $fieldName : string
- $databaseRow : array
- $fieldConfig : array
- $formFieldIdentifier : string
- $formFieldName : string
addControl()
public
addControl(string $control[, string $identifier = '' ]) : void
Parameters
- $control : string
- $identifier : string = ''
getControls()
public
getControls() : array
Return values
arraygetDatabaseRow()
public
getDatabaseRow() : array
Return values
arraygetFieldConfig()
public
getFieldConfig() : array
Return values
arraygetFieldName()
public
getFieldName() : string
Return values
stringgetFormFieldIdentifier()
public
getFormFieldIdentifier() : string
Return values
stringgetFormFieldName()
public
getFormFieldName() : string
Return values
stringgetResultArray()
public
getResultArray() : array
Return values
arraygetTableName()
public
getTableName() : string
Return values
stringremoveControl()
public
removeControl(string $identifier) : bool
Parameters
- $identifier : string
Return values
boolsetControls()
public
setControls(array $controls) : void
Parameters
- $controls : array
setResultArray()
WARNING: Modifying the result array should be used with care. It mostly only exists to allow additional $resultArray['javaScriptModules'].
public
setResultArray(array $resultArray) : void
Parameters
- $resultArray : array