Helpful library for creating TCA's in TYPO3
The recommended way to install tco is by using composer. Get tco by running
composer require tildbj/typo3-tco
Just install tco via extensionmanager. There are no more steps required.
$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(),
]
Feel free to ask your questions on Slack