Remove FormBuilder coupling to moduleHandler/themeManager

Created on 27 August 2014, over 10 years ago
Updated 29 January 2025, 6 days ago

Problem/Motivation

The form system is currently closely coupled to the Module and Theme system via alters. That's undesireable as it makes it harder to test the core of the form system. It also inhibits our ability to (later), abstract FAPI out entirely. (Whether there is value to doing so or not, there are architectural benefits to the decoupling that would entail.)

Proposed resolution

Factor the module and theme dependencies out of FormBuilder and into an interstitial "alter" object. That adds a decoupling between FormBuilder and Module/ThemeHandler. The net effect is identical for the 99% use case, but improves the separation of concerns within FAPI.

This is primarily an internal improvement to FAPI and not an API change for anyone except core FAPI developers.

Remaining tasks

Commit?

User interface changes

None.

API changes

No public facing changes; just internal to FAPI.

πŸ“Œ Task
Status

Closed: outdated

Version

11.0 πŸ”₯

Component

forms system

Created by

πŸ‡ΊπŸ‡ΈUnited States tim.plunkett Philadelphia

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