Project

General

Profile

Actions

Feature #81089

closed

Improve TCA configuration with utility functions and constants

Added by Anonymous over 7 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-04-30
Due date:
% Done:

0%

Estimated time:
PHP Version:
7.1
Tags:
TCA
Complexity:
Sprint Focus:

Description

Improving the TCA configuration with utility functions and constants would be really nice.

Possible functions:
  • getRichtextEditorTCAConfig(...)
  • getLinkWizardTCAConfig(...)

So actually something like ExtensionManagementUtility::getFileFieldTCAConfig for wizards, richtext fields, select fields, etc.

Possible constants:
  • TYPE_SELECT = 'select', TYPE_INPUT = 'input', ...
  • RENDER_TYPE_SELECT_MULTIPLE_SIDE_BY_SIDE = 'selectMultipleSideBySide', RENDER_TYPE_SELECT_SINGLE='selectSingle'
  • EVAL_TRIM = 'trim', EVAL_NOSPACE = 'nospace'
Advantages:
  • IDE code completion
  • IDE could inform about deprecated constants/functions
  • Avoids typos
  • Avoids duplicate code
  • Easier refactoring
Actions

Also available in: Atom PDF