diff --git a/core/modules/node/src/Entity/Node.php b/core/modules/node/src/Entity/Node.php index df8f260..b77ff50 100644 --- a/core/modules/node/src/Entity/Node.php +++ b/core/modules/node/src/Entity/Node.php @@ -431,7 +431,10 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { ->setRevisionable(TRUE) ->setTranslatable(TRUE) ->setDisplayOptions('form', array( - 'type' => 'boolean', + 'type' => 'boolean_checkbox', + 'settings' => array( + 'display_label' => TRUE, + ), 'weight' => -1, )); @@ -440,7 +443,10 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { ->setRevisionable(TRUE) ->setTranslatable(TRUE) ->setDisplayOptions('form', array( - 'type' => 'boolean', + 'type' => 'boolean_checkbox', + 'settings' => array( + 'display_label' => TRUE, + ), 'weight' => 0, )); diff --git a/core/modules/node/src/NodeForm.php b/core/modules/node/src/NodeForm.php index 8c80699..8878479 100644 --- a/core/modules/node/src/NodeForm.php +++ b/core/modules/node/src/NodeForm.php @@ -120,7 +120,7 @@ public function form(array $form, array &$form_state) { '#weight' => -1, ); - $form['revision_log'] = array( + $form['revision_log'] += array( '#states' => array( 'visible' => array( ':input[name="revision"]' => array('checked' => TRUE),