PHP code example of tildbj / typo3-tco
1. Go to this page and download the library: Download tildbj/typo3-tco library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tildbj / typo3-tco example snippets
$tcaColumn = [
'columnName' => (new \TildBJ\Tco\Input('LLL:ext:my_ext/Resources/Private/Language/locallang_db.xlf:columnName'))
->setRequired(false)
->toArray(),
'columnName2' => (new \TildBJ\Tco\Image('LLL:ext:my_ext/Resources/Private/Language/locallang_db.xlf:columnName2', 'columnName2'))
->enableLink()
->setMaxItems(1)
->toArray(),
]