[2.0.0-beta2] Expose default attributes prop in forms

Created on 22 August 2024, 4 months ago
Updated 27 August 2024, 4 months ago

Problem/Motivation

Following the completion of [2.0.0-alpha1] Resolve Twig namespaces in _template property Active and the cancellation of [2.0.0-alpha1] Expose default attribute prop in forms? Active , let's check again if this works:

The default attribute object it is visible in Form Builder only when the prop is explicitly present in the definition file (which is not a good practice).

We don't do it automatically by default because some (most?) projects doesn't want the attributes to be exposed for every components.

However, if a project wants this attributes visible by default, he can add it by using this $this->alterInfo('component_info') hook.

Proposed resolution

If it is not working yet, propose a fix.

Also, this can be a good use case to prepare the future "UI Patterns UI" module (a module to configure the sources in form).

📌 Task
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

🇫🇷France pdureau Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024