Attention
TYPO3 v10 has reached end-of-life as of April 30th 2023 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.
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¶
- class TYPO3\CMS\Backend\Controller\Event\AfterPageColumnsSelectedForLocalizationEvent¶
This event triggers after the LocalizationController (AJAX) has selected page columns to be translated. Allows third parties to add to or change the columns and content elements withing those columns which will be available for localization through the "translate" modal in the page module.
- getColumns()¶
- Return type
array
- setColumns(array columns)¶
- Parameters
$columns (
array
) -- the columns
- getColumnList()¶
- Return type
array
- setColumnList(array columnList)¶
- Parameters
$columnList (
array
) -- the columnList
- getBackendLayout()¶
- Return type
TYPO3\CMS\Backend\View\BackendLayout\BackendLayout
- getRecords()¶
- Return type
array
- getParameters()¶
- Return type
array