Evaluate Symfony form component as a replacement for Drupal FAPI

Created on 21 February 2012, about 13 years ago
Updated 20 March 2025, 17 days ago

Spin-off from: #1263478: Identify pieces of Drupal that could be replaced by Symfony code β†’

Reasons

Converting the form system seems to make sense for several reasons:
1) less code to maintain,
2) one less drupalism,
3) decreased memory footprint [based on some basic comparisons]
4) lazy loading due to class loader

Details

- Symfony form component documentation - http://symfony.com/doc/current/book/forms.html
- Currently, the FAPI and render API are similiar, but not entirely the same. In order to use symfony2 form component the render API will need class components as well that will probably stay Drupal specific and simply work together with form API. Otherwise I suppose we would have to use templates for everything, unless there is some other existing mechanism to mimic the render API in symfony.

Tasks

- Determine what parts of the render API need to be mimicked as classes
- Evaluate wrapping Symfony validation and submit handlers with Drupal hooks vs using directly
- Work on a prototype

🌱 Plan
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

forms system

Created by

πŸ‡ΊπŸ‡ΈUnited States boombatower

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024