Commit 95936fca authored by lisastreeter's avatar lisastreeter Committed by bojanz

Issue #3002834 by lisastreeter: Field Overrides UI should correctly label field properties

parent b66eddc6
......@@ -21,7 +21,7 @@ use Drupal\Core\Render\Element\FormElement;
* Provides an address form element.
*
* Use #field_overrides to override the country-specific address format,
* forcing specific fields to be hidden, optional, or required.
* forcing specific properties to be hidden, optional, or required.
*
* Usage example:
* @code
......
......@@ -172,12 +172,12 @@ class AddressItem extends FieldItemBase implements AddressInterface {
$element['field_overrides_title'] = [
'#type' => 'item',
'#title' => $this->t('Field overrides'),
'#description' => $this->t('Use field overrides to override the country-specific address format, forcing specific fields to always be hidden, optional, or required.'),
'#description' => $this->t('Use field overrides to override the country-specific address format, forcing specific properties to always be hidden, optional, or required.'),
];
$element['field_overrides'] = [
'#type' => 'table',
'#header' => [
$this->t('Field'),
$this->t('Property'),
$this->t('Override'),
],
'#element_validate' => [[get_class($this), 'fieldOverridesValidate']],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment