Make #wrapper_attributes official and document it

Created on 2 March 2014, over 10 years ago
Updated 12 September 2023, 9 months ago

As part of #1838114: Change node formโ€™s vertical tabs into details elements โ†’ , the new FAPI property #wrapper_attributes was added to theme_form_element(). However, it was added with the comment // Temporary hack for #type 'item'.

Since #wrapper_attributes was added, it has been used as though it were official throughout core. There are currently 54 instances of the string "#wrapper_attributes" in core, many of which are legitimate uses of the property. The new addition is indeed useful to add things like classes to the wrapper around form elements (especially when working with radio buttons or checkboxes). We should remove the statement of it being a "temporary hack" and make it official. In addition, this new property needs to be documented through a change record.

Beta phase evaluation

<!--Uncomment the relevant rows for the issue. -->
๐Ÿ“Œ Task
Status

Fixed

Version

8.0 โšฐ๏ธ

Component
Formย  โ†’

Last updated about 5 hours ago

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States quicksketch

Live updates comments and jobs are added and updated live.
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.69.0 2024