Commit 1ee47205 authored by garphy's avatar garphy Committed by bojanz

Issue #3117399 by garphy: Field item sub-properties labels should not end with...

Issue #3117399 by garphy: Field item sub-properties labels should not end with a period (.) character
parent 611c880c
......@@ -105,31 +105,31 @@ class AddressItem extends FieldItemBase implements AddressInterface {
public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) {
$properties = [];
$properties['langcode'] = DataDefinition::create('string')
->setLabel(t('The language code.'));
->setLabel(t('The language code'));
$properties['country_code'] = DataDefinition::create('string')
->setLabel(t('The two-letter country code.'));
->setLabel(t('The two-letter country code'));
$properties['administrative_area'] = DataDefinition::create('string')
->setLabel(t('The top-level administrative subdivision of the country.'));
->setLabel(t('The top-level administrative subdivision of the country'));
$properties['locality'] = DataDefinition::create('string')
->setLabel(t('The locality (i.e. city).'));
->setLabel(t('The locality (i.e. city)'));
$properties['dependent_locality'] = DataDefinition::create('string')
->setLabel(t('The dependent locality (i.e. neighbourhood).'));
->setLabel(t('The dependent locality (i.e. neighbourhood)'));
$properties['postal_code'] = DataDefinition::create('string')
->setLabel(t('The postal code.'));
->setLabel(t('The postal code'));
$properties['sorting_code'] = DataDefinition::create('string')
->setLabel(t('The sorting code.'));
->setLabel(t('The sorting code'));
$properties['address_line1'] = DataDefinition::create('string')
->setLabel(t('The first line of the address block.'));
->setLabel(t('The first line of the address block'));
$properties['address_line2'] = DataDefinition::create('string')
->setLabel(t('The second line of the address block.'));
->setLabel(t('The second line of the address block'));
$properties['organization'] = DataDefinition::create('string')
->setLabel(t('The organization'));
$properties['given_name'] = DataDefinition::create('string')
->setLabel(t('The given name.'));
->setLabel(t('The given name'));
$properties['additional_name'] = DataDefinition::create('string')
->setLabel(t('The additional name.'));
->setLabel(t('The additional name'));
$properties['family_name'] = DataDefinition::create('string')
->setLabel(t('The family name.'));
->setLabel(t('The family name'));
return $properties;
}
......
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