TcaColumnsProcessFieldLabels implements FormDataProviderInterface

Works on processedTca to determine the final value of field labels.

processedTca['columns]['aField']['label']

Table of Contents

Interfaces

FormDataProviderInterface
Interface must be implemented by form data provider classes.

Methods

addData()  : array<string|int, mixed>
Iterate over all processedTca columns fields
getLanguageService()  : LanguageService
setLabelFromPageTsConfig()  : array<string|int, mixed>
Page TSconfig can override labels:
setLabelFromShowitemAndPalettes()  : array<string|int, mixed>
The label of a single field can be set in the showitem configuration of the record type and as palettes showitem as second ";" separated argument:
translateLabels()  : array<string|int, mixed>
Translate all labels if needed.

Methods

addData()

Iterate over all processedTca columns fields

public addData(array<string|int, mixed> $result) : array<string|int, mixed>
Parameters
$result : array<string|int, mixed>

Result array

Return values
array<string|int, mixed>

Modified result array

setLabelFromPageTsConfig()

Page TSconfig can override labels:

protected setLabelFromPageTsConfig(array<string|int, mixed> $result) : array<string|int, mixed>

TCEFORM.aTable.aField.label = 'override' TCEFORM.aTable.aField.label.en = 'override'

Parameters
$result : array<string|int, mixed>

Result array

Return values
array<string|int, mixed>

Modified result array

setLabelFromShowitemAndPalettes()

The label of a single field can be set in the showitem configuration of the record type and as palettes showitem as second ";" separated argument:

protected setLabelFromShowitemAndPalettes(array<string|int, mixed> $result) : array<string|int, mixed>

processedTca['types']['aType']['showitem'] = 'aFieldName;aLabelOverride, --palette--;;aPaletteName' processedTca['palettes']['aPaletteName']['showitem'] = 'anotherFieldName;anotherLabelOverride'

Parameters
$result : array<string|int, mixed>

Result array

Return values
array<string|int, mixed>

Modified result array

translateLabels()

Translate all labels if needed.

protected translateLabels(array<string|int, mixed> $result) : array<string|int, mixed>
Parameters
$result : array<string|int, mixed>

Result array

Return values
array<string|int, mixed>

Modified result array


        
On this page

Search results