AfterPageColumnsSelectedForLocalizationEvent

Event to listen to after the form engine has been initialized (and all data has been persisted).

The PSR-14 event \TYPO3\CMS\Backend\Controller\Event\AfterPageColumnsSelectedForLocalizationEvent will be dispatched after records and columns are collected in the LocalizationController.

The event receives:

  • The default columns and columns list built by LocalizationController
  • The list of records that were analyzed to create the columns manifest
  • The parameters received by the LocalizationController

The event allows changes to:

  • the columns
  • the columns list

This allows third party code to read or manipulate the “columns manifest” that gets displayed in the translation modal when a user has clicked the Translate button in the page module, by implementing a listener for the event.

API

getColumns()

| ReturnType: array |

Returns a list of columns, indexed by column position number, value is label (either LLL: or hardcoded).

setColumns(array $columns)

| Arguments: $columns Array | ReturnType: void |

Overwrite the list of columns - see getter for array structure.

getColumnList()

| ReturnType: array |

List of integer column position numbers used in the BackendLayout.

setColumnList(array $columnList)

| Arguments: $columnList array | ReturnType: array |

Overwrite the list of integer column positions.

getBackendLayout()

| ReturnType: \TYPO3\CMS\Backend\View\BackendLayout\BackendLayout |

Returns the currently used backend layout.

getRecords()

| ReturnType: array |

Array of records which were used when building the original column manifest and column position numbers list.

getParameters()

| ReturnType: array |

Request parameters passed to LocalizationController.