AfterPageColumnsSelectedForLocalizationEvent
The PSR-14 event
\TYPO3\
is available to listen for after the form engine has been
initialized (and all data has been persisted). It will be dispatched after
records and columns are collected in the
\TYPO3\
.
The event receives:
- The default columns and columns list built by
Localization
Controller - The list of records that were analyzed to create the columns manifest
- The parameters received by the
Localization
Controller
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.
Example
Note
Currently, we do not have an example for this event. If you can provide a useful one, please open an issue with your code snippets or a pull request.
API
- class AfterPageColumnsSelectedForLocalizationEvent
-
- Fully qualified name
-
\TYPO3\
CMS\ Backend\ Controller\ Event\ After Page Columns Selected For Localization Event
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 ( )
-
Returns list of columns, indexed by column position number, value is label (either LLL: or hardcoded).
- Returns
-
array
- getColumnList ( )
-
Returns a list of integer column position numbers used in the BackendLayout.
- Returns
-
array