By claudiu.cristea on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.7.x
Introduced in version:
8.7.0-alpha1
Issue links:
Description:
The form element has a new property #label_for which can be used to associate the label of the form element with a different field. The value should be the desired field ID. This property can be used by form elements with composite fields to make the label refer one specific field.
For a use case, see \Drupal\file\Element\ManagedFile::processManagedFile().
Impacts:
Module developers
Themers