diff --git a/core/modules/comment/src/Entity/Comment.php b/core/modules/comment/src/Entity/Comment.php index f563df2..8d4d313 100644 --- a/core/modules/comment/src/Entity/Comment.php +++ b/core/modules/comment/src/Entity/Comment.php @@ -241,7 +241,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { ->setTranslatable(TRUE) ->setSetting('target_type', 'user') ->setSetting('handler', 'default') - ->setDefaultValueCallback(array('Drupal\comment\Entity\Comment', 'getCurrentUserId')) + ->setDefaultValueCallback('Drupal\comment\Entity\Comment::getCurrentUserId') ->setDisplayOptions('form', array( 'type' => 'entity_reference_autocomplete', 'weight' => 5, @@ -262,7 +262,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { ->setDefaultValue('') ->addConstraint('CommentName', array()) ->setDisplayOptions('form', array( - 'type' => 'string', + 'type' => 'string_textfield', 'weight' => -15, 'settings' => array( 'size' => 30,