diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/MapItem.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/MapItem.php index b5795a5..ad44c81 100644 --- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/MapItem.php +++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/MapItem.php @@ -27,8 +27,8 @@ class MapItem extends FieldItemBase { * {@inheritdoc} */ public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) { - // The properties are dynamic and can not be defined statically, but we - // allow to set some properties on the field definition if they are known. + // The properties are dynamic and can not be defined statically. However, we + // allow setting some definitions on the field definition if they are known. return $field_definition->getSetting('property_definitions') ?: array(); } @@ -51,8 +51,8 @@ public static function schema(FieldStorageDefinitionInterface $field_definition) * {@inheritdoc} */ public function toArray() { - // The default implementation of toArray() only returns known properties - // return everything instead for a map as the properties are not defined. + // The default implementation of toArray() only returns known properties. + // For a map, return everything as the properties are not pre-defined. return $this->getValue(); }