‪TYPO3CMS  9.5
site_base_variant.php
Go to the documentation of this file.
1 <?php
2 
3 return [
4  'ctrl' => [
5  'label' => 'base',
6  'label_alt' => 'condition',
7  'label_alt_force' => true,
8  'title' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.ctrl.title',
9  'typeicon_classes' => [
10  'default' => 'mimetypes-x-content-domain',
11  ],
12  ],
13  'columns' => [
14  'base' => [
15  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.base',
16  'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_base_variant.base',
17  'config' => [
18  'type' => 'input',
19  'eval' => 'required, trim',
20  'placeholder' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.base.placeholder',
21  ],
22  ],
23  'condition' => [
24  'label' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.condition',
25  'description' => 'LLL:EXT:backend/Resources/Private/Language/siteconfiguration_fieldinformation.xlf:site_base_variant.condition',
26  'config' => [
27  'type' => 'input',
28  'eval' => 'required, trim',
29  'valuePicker' => [
30  'items' => [
31  [ 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.condition.applicationContext', 'applicationContext == "Production"'],
32  [ 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.condition.environmentVariable', 'getenv("mycontext") == "production"'],
33  ],
34  ],
35  'placeholder' => 'LLL:EXT:backend/Resources/Private/Language/locallang_siteconfiguration_tca.xlf:site_base_variant.condition.placeholder',
36  ],
37  ],
38  ],
39  'types' => [
40  '1' => [
41  'showitem' => 'base,condition',
42  ],
43  ],
44 ];