Commit f607d7a7 authored by Stefan Busemann's avatar Stefan Busemann
Browse files

[TASK] Use short array syntax

parent 3c278ff4
......@@ -3,8 +3,8 @@ if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
return array(
'ctrl' => array(
return [
'ctrl' => [
'title' => 'LLL:EXT:typo3_roadmap/Resources/Private/Language/locallang_db.xml:tx_typo3roadmap_domain_model_minorversion',
'label' => 'version',
'tstamp' => 'tstamp',
......@@ -13,107 +13,107 @@ return array(
'defaultSortBy' => 'sorting',
'sortby' => 'sorting',
'delete' => 'deleted',
'enablecolumns' => array(
'enablecolumns' => [
'disabled' => 'hidden',
),
],
'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('typo3_roadmap') . 'Configuration/TCA/tx_typo3roadmap_domain_model_minorversion.php',
'iconfile' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('typo3_roadmap') . 'Resources/Public/Icons/tx_typo3roadmap_domain_model_minorversion.gif',
),
'interface' => array(
],
'interface' => [
'showRecordFieldList' => 'hidden,version,link,focus,estimated,released,major_version'
),
'columns' => array(
'hidden' => array(
],
'columns' => [
'hidden' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
'config' => array(
'config' => [
'type' => 'check',
'default' => '0'
)
),
'version' => array(
]
],
'version' => [
'exclude' => 0,
'label' => 'LLL:EXT:typo3_roadmap/Resources/Private/Language/locallang_db.xml:tx_typo3roadmap_domain_model_minorversion.version',
'config' => array(
'config' => [
'type' => 'input',
'size' => '30',
'eval' => 'required,trim',
)
),
'link' => array(
]
],
'link' => [
'exclude' => 0,
'label' => 'LLL:EXT:typo3_roadmap/Resources/Private/Language/locallang_db.xml:tx_typo3roadmap_domain_model_minorversion.link',
'config' => array(
'config' => [
'type' => 'input',
'size' => '30',
'wizards' => array(
'wizards' => [
'_PADDING' => 2,
'link' => array(
'link' => [
'type' => 'popup',
'title' => 'Link',
'icon' => 'link_popup.gif',
'module' => array(
'module' => [
'name' => 'wizard_element_browser',
'urlParameters' => array(
'urlParameters' => [
'mode' => 'wizard',
'act' => 'file'
)
),
]
],
'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1'
),
),
],
],
'eval' => 'trim',
)
),
'focus' => array(
]
],
'focus' => [
'exclude' => 0,
'label' => 'LLL:EXT:typo3_roadmap/Resources/Private/Language/locallang_db.xml:tx_typo3roadmap_domain_model_minorversion.focus',
'config' => array(
'config' => [
'type' => 'input',
'size' => '30',
'eval' => 'required,trim',
)
),
'estimated' => array(
]
],
'estimated' => [
'exclude' => 0,
'label' => 'LLL:EXT:typo3_roadmap/Resources/Private/Language/locallang_db.xml:tx_typo3roadmap_domain_model_minorversion.estimated',
'config' => array(
'config' => [
'type' => 'input',
'size' => '8',
'max' => '20',
'eval' => 'date',
'checkbox' => '0',
'default' => '0'
)
),
'released' => array(
]
],
'released' => [
'exclude' => 0,
'label' => 'LLL:EXT:typo3_roadmap/Resources/Private/Language/locallang_db.xml:tx_typo3roadmap_domain_model_minorversion.released',
'config' => array(
'config' => [
'type' => 'input',
'size' => '8',
'max' => '20',
'eval' => 'date',
'checkbox' => '0',
'default' => '0'
)
),
'major_version' => array(
]
],
'major_version' => [
'exclude' => 0,
'label' => 'LLL:EXT:typo3_roadmap/Resources/Private/Language/locallang_db.xml:tx_typo3roadmap_domain_model_minorversion.major_version',
'config' => array(
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'foreign_table' => 'tx_typo3roadmap_domain_model_majorversion',
'foreign_table_where' => ' ORDER BY tx_typo3roadmap_domain_model_majorversion.title',
"maxitems" => 1,
),
),
),
'types' => array(
'0' => array('showitem' => 'hidden;;1;;1-1-1, version, link, focus, estimated, released, major_version')
),
'palettes' => array(
'1' => array('showitem' => '')
)
);
],
],
],
'types' => [
'0' => ['showitem' => 'hidden;;1;;1-1-1, version, link, focus, estimated, released, major_version']
],
'palettes' => [
'1' => ['showitem' => '']
]
];
......@@ -3,8 +3,8 @@ if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
return array(
'ctrl' => array(
return [
'ctrl' => [
'title' => 'LLL:EXT:typo3_roadmap/Resources/Private/Language/locallang_db.xml:tx_typo3roadmap_domain_model_phpversion',
'label' => 'version',
'tstamp' => 'tstamp',
......@@ -12,61 +12,61 @@ return array(
'cruser_id' => 'cruser_id',
'sortby' => 'sorting',
'delete' => 'deleted',
'enablecolumns' => array(
'enablecolumns' => [
'disabled' => 'hidden',
),
],
'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('typo3_roadmap') . 'Configuration/TCA/tx_typo3roadmap_domain_model_phpversion.php',
'iconfile' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('typo3_roadmap') . 'Resources/Public/Icons/tx_typo3roadmap_domain_model_phpversion.gif',
),
'interface' => array(
],
'interface' => [
'showRecordFieldList' => 'hidden,version,active_support,security_support'
),
'columns' => array(
'hidden' => array(
],
'columns' => [
'hidden' => [
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.hidden',
'config' => array(
'config' => [
'type' => 'check',
'default' => '0'
)
),
'version' => array(
]
],
'version' => [
'exclude' => 0,
'label' => 'LLL:EXT:typo3_roadmap/Resources/Private/Language/locallang_db.xml:tx_typo3roadmap_domain_model_phpversion.version',
'config' => array(
'config' => [
'type' => 'input',
'size' => '30',
)
),
'active_support' => array(
]
],
'active_support' => [
'exclude' => 0,
'label' => 'LLL:EXT:typo3_roadmap/Resources/Private/Language/locallang_db.xml:tx_typo3roadmap_domain_model_phpversion.active_support',
'config' => array(
'config' => [
'type' => 'input',
'size' => '8',
'max' => '20',
'eval' => 'date',
'checkbox' => '0',
'default' => '0'
)
),
'security_support' => array(
]
],
'security_support' => [
'exclude' => 0,
'label' => 'LLL:EXT:typo3_roadmap/Resources/Private/Language/locallang_db.xml:tx_typo3roadmap_domain_model_phpversion.security_support',
'config' => array(
'config' => [
'type' => 'input',
'size' => '8',
'max' => '20',
'eval' => 'date',
'checkbox' => '0',
'default' => '0'
)
),
),
'types' => array(
'0' => array('showitem' => 'hidden;;1;;1-1-1, version, active_support, security_support')
),
'palettes' => array(
'1' => array('showitem' => '')
)
);
]
],
],
'types' => [
'0' => ['showitem' => 'hidden;;1;;1-1-1, version, active_support, security_support']
],
'palettes' => [
'1' => ['showitem' => '']
]
];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment