tx_blogexample_domain_model_datetimeimmutableexample.php 1.06 KB
Newer Older
1
<?php
2

3
4
declare(strict_types=1);

5
6
7
return [
    'ctrl' => [
        'title' => 'DateTimeImmutable Example',
8
        'label' => 'uid',
9
        'iconfile' => 'EXT:blog_example/Resources/Public/Icons/icon_tx_blogexample_domain_model_dateexample.gif',
10
11
12
    ],
    'columns' => [
        'datetime_immutable_text' => [
13
            'exclude' => true,
14
            'label' => 'type=datetime, db=text',
15
            'config' => [
16
                'type' => 'datetime',
17
            ],
18
19
        ],
        'datetime_immutable_int' => [
20
            'exclude' => true,
21
            'label' => 'type=datetime, db=int',
22
            'config' => [
23
                'type' => 'datetime',
24
            ],
25
26
        ],
        'datetime_immutable_datetime' => [
27
            'exclude' => true,
28
            'label' => 'type=datetime, db=datetime',
29
            'config' => [
30
                'type' => 'datetime',
31
                'dbType' => 'datetime',
32
33
            ],
        ],
34
35
    ],
    'types' => [
36
        '1' => ['showitem' => 'datetime_immutable_text, datetime_immutable_int, datetime_immutable_datetime'],
37
38
    ],
];