diff --git a/core/modules/user/src/Entity/User.php b/core/modules/user/src/Entity/User.php index 4520e12..315c489 100644 --- a/core/modules/user/src/Entity/User.php +++ b/core/modules/user/src/Entity/User.php @@ -515,6 +515,10 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { $fields['created'] = FieldDefinition::create('created') ->setLabel(t('Created')) ->setDescription(t('The time that the user was created.')); + + $fields['changed'] = FieldDefinition::create('changed') + ->setLabel(t('Changed')) + ->setDescription(t('The time that the user was last edited.')); $fields['access'] = FieldDefinition::create('timestamp') ->setLabel(t('Last access')) @@ -531,10 +535,6 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { ->setDescription(t('The email address used for initial account creation.')) ->setDefaultValue(''); - $fields['changed'] = FieldDefinition::create('changed') - ->setLabel(t('Changed')) - ->setDescription(t('The time that the user was last edited.')); - // @todo Convert this to entity_reference_field, see // https://drupal.org/node/2044859. $fields['roles'] = FieldDefinition::create('string')