Skip to content

Instantly share code, notes, and snippets.

@calien666
Last active April 29, 2020 11:34
Show Gist options
  • Save calien666/0a7ee9992ae6e54bc143975b0cb127f8 to your computer and use it in GitHub Desktop.
Save calien666/0a7ee9992ae6e54bc143975b0cb127f8 to your computer and use it in GitHub Desktop.
PhpStorm TCA File Template
//include this snippet under Settings -> Editor -> Live Templates
// Abbreviation tca
'$TITLE$' => [
'label' => 'LLL:EXT:$TEMPLATE$/Resources/Private/Language/locallang.xlf:$pretitle$.$TITLE$',
'config' => [
'type' => '$TYPE$'$END$
]
],
// add this file under Settings -> Editor -> File and Code Templates -> Files and enable Live Templates
<?php
declare(strict_types=1);
#parse("PHP File Header.php")
return [
'ctrl' => [
'title' => 'LLL:EXT:#[[$extensionName$]]#/Resources/Private/Language/locallang_tca.xlf:#[[$table$]]#',
'label' => '#[[$labelField$]]#',
'iconfile' => 'EXT:#[[$extensionName$]]#/Resources/Public/Icons/Extension.svg',
'default_sortby' => 'uid',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'delete' => 'deleted',
'versioningWS' => false,
'enablecolumns' => [
'disabled' => 'hidden'
],
'searchFields' => ''
],
'inferface' => [
'showRecordFieldList' => '',
'maxDBListItems' => 20,
'maxSingleDBListItems' => 100
],
'palettes' => [],
'types' => [
'1' => [
'showitem' => ''
]
],
'columns' => [
#[[$END$]]#
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment