diff --git a/core/modules/node/src/Entity/Node.php b/core/modules/node/src/Entity/Node.php index 3309c20..91a39bc 100644 --- a/core/modules/node/src/Entity/Node.php +++ b/core/modules/node/src/Entity/Node.php @@ -371,7 +371,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { ->setDisplayConfigurable('form', TRUE); $fields['uid'] = BaseFieldDefinition::create('entity_reference') - ->setLabel(t('Author')) + ->setLabel(t('Authored by')) ->setDescription(t('The user ID of the node author.')) ->setRevisionable(TRUE) ->setSetting('target_type', 'user') @@ -402,7 +402,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { ->setDefaultValue(TRUE); $fields['created'] = BaseFieldDefinition::create('created') - ->setLabel(t('Created')) + ->setLabel(t('Authored on')) ->setDescription(t('The time that the node was created.')) ->setRevisionable(TRUE) ->setTranslatable(TRUE) diff --git a/core/modules/node/src/NodeForm.php b/core/modules/node/src/NodeForm.php index 910a917..4a752aa 100644 --- a/core/modules/node/src/NodeForm.php +++ b/core/modules/node/src/NodeForm.php @@ -77,6 +77,7 @@ protected function prepareEntity() { * {@inheritdoc} */ public function form(array $form, FormStateInterface $form_state) { + $form = parent::form($form, $form_state, $node); // Try to restore from temp store. $uuid = $this->entity->uuid(); @@ -126,16 +127,12 @@ public function form(array $form, FormStateInterface $form_state) { '#access' => isset($language_configuration['language_show']) && $language_configuration['language_show'], ); - // Create the "advanced" vertical tabs before building the form, so that - // field widgets may detect its presence and choose to live there. $form['advanced'] = array( '#type' => 'vertical_tabs', '#attributes' => array('class' => array('entity-meta')), '#weight' => 99, ); - $form = parent::form($form, $form_state, $node); - // Add a revision_log field if the "Create new revision" option is checked, // or if the current user has the ability to check that option. $form['revision_information'] = array( @@ -198,12 +195,10 @@ public function form(array $form, FormStateInterface $form_state) { $form['uid'] += array( '#group' => 'author', ); - $form['uid']['widget'][0]['value']['#title'] = $this->t('Authored by'); $form['created'] += array( '#group' => 'author', ); - $form['created']['widget'][0]['value']['#title'] = $this->t('Authored on'); // Node options for administrators. $form['options'] = array( diff --git a/core/modules/node/templates/node.html.twig b/core/modules/node/templates/node.html.twig index c824b1d..919403a 100644 --- a/core/modules/node/templates/node.html.twig +++ b/core/modules/node/templates/node.html.twig @@ -88,7 +88,7 @@