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.
Fixed
8.0 โฐ๏ธ
Last updated
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.