By gloriaswebtech on
Change record status:
Draft (View all draft change records)
Project:
Introduced in branch:
main
Issue links:
Description:
The field widget LinkWidget used to drop the values in a link's options['attributes'] on save. Attributes set in code were lost before this change.
LinkWidget::extractFormValues() now keeps the stored attributes and edited attributes. A widget that extends LinkWidget edits an attribute by adding a child element to ['options']['attributes'].
A submitted attribute value replaces the stored value. When a widget leaves the key out of its submitted values, the attribute is removed. Stored attributes without an element are kept.
Impacts:
Site builders, administrators, editors
Module developers