diff --git a/core/modules/node/src/Entity/Node.php b/core/modules/node/src/Entity/Node.php index 3bdc9d2..d4391c4 100644 --- a/core/modules/node/src/Entity/Node.php +++ b/core/modules/node/src/Entity/Node.php @@ -385,7 +385,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { )) ->setDisplayOptions('form', array( 'type' => 'entity_reference_autocomplete', - 'weight' => -1, + 'weight' => 0, 'settings' => array( 'match_operator' => 'CONTAINS', 'size' => '60', @@ -414,7 +414,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { )) ->setDisplayOptions('form', array( 'type' => 'datetime_timestamp', - 'weight' => 0, + 'weight' => 5, )) ->setDisplayConfigurable('form', TRUE); @@ -435,7 +435,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { 'settings' => array( 'display_label' => TRUE, ), - 'weight' => -1, + 'weight' => 10, )) ->setDisplayConfigurable('form', TRUE); @@ -449,7 +449,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { 'settings' => array( 'display_label' => TRUE, ), - 'weight' => 0, + 'weight' => 15, )) ->setDisplayConfigurable('form', TRUE); @@ -473,7 +473,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { ->setTranslatable(TRUE) ->setDisplayOptions('form', array( 'type' => 'string_textarea', - 'weight' => 0, + 'weight' => 20, 'settings' => array( 'rows' => 4, ), diff --git a/core/modules/node/src/NodeForm.php b/core/modules/node/src/NodeForm.php index e8bf3c5..93f576a 100644 --- a/core/modules/node/src/NodeForm.php +++ b/core/modules/node/src/NodeForm.php @@ -159,9 +159,6 @@ public function form(array $form, FormStateInterface $form_state) { '#default_value' => !empty($this->settings['options']['revision']), '#access' => $current_user->hasPermission('administer nodes'), '#group' => 'revision_information', - // Ensure the 'Create new revision' checkbox sits above the revision log - // message. - '#weight' => -1, ); $form['revision_log'] += array(