comparison core/modules/node/src/NodeTranslationHandler.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 7a779792577d
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
61 if ($form_state->hasValue('content_translation')) { 61 if ($form_state->hasValue('content_translation')) {
62 $translation = &$form_state->getValue('content_translation'); 62 $translation = &$form_state->getValue('content_translation');
63 $translation['status'] = $entity->isPublished(); 63 $translation['status'] = $entity->isPublished();
64 $account = $entity->uid->entity; 64 $account = $entity->uid->entity;
65 $translation['uid'] = $account ? $account->id() : 0; 65 $translation['uid'] = $account ? $account->id() : 0;
66 $translation['created'] = format_date($entity->created->value, 'custom', 'Y-m-d H:i:s O'); 66 $translation['created'] = $this->dateFormatter->format($entity->created->value, 'custom', 'Y-m-d H:i:s O');
67 } 67 }
68 parent::entityFormEntityBuild($entity_type, $entity, $form, $form_state); 68 parent::entityFormEntityBuild($entity_type, $entity, $form, $form_state);
69 } 69 }
70 70
71 } 71 }