Language fields

New in version 13.0

Changed in version 13.3

This field type displays all languages available in the current site context. Outside of the site context it displays all languages available in the installation.

A special language All languages is automatically added.

The according database field is generated automatically.

EXT:myExtension/Configuration/Overrides/someTable.php
<?php

$GLOBALS['TCA'][$someTable]['columns'][$someLanguageField] = [
    'label' => 'Some language field',
    'config' => [
        'type' => 'language',
    ],
];
Copied!