Issue Feature Closed

#81089Improve TCA configuration with utility functions and constants

Anonymous 04/30/17, 11:18 updated 03/07/20, 20:26

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

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.