diff --git a/core/modules/comment/src/CommentManager.php b/core/modules/comment/src/CommentManager.php index 0489a79..f840d35 100644 --- a/core/modules/comment/src/CommentManager.php +++ b/core/modules/comment/src/CommentManager.php @@ -9,6 +9,7 @@ use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface; use Drupal\Component\Utility\String; +use Drupal\Component\Utility\Unicode; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityManagerInterface; @@ -118,7 +119,7 @@ public function addDefaultField($entity_type, $bundle, $field_name = 'comment', // Silently create the comment-type for the calling code. $comment_type_storage->create(array( 'id' => $comment_type_id, - 'label' => $comment_type_id, + 'label' => Unicode::ucfirst($comment_type_id), 'target_entity_type_id' => $entity_type, 'description' => 'Default comment field', ))->save(); @@ -183,7 +184,7 @@ public function addDefaultField($entity_type, $bundle, $field_name = 'comment', 'weight' => 20, )) ->save(); - // The comment field should be hidden in all other view displays. + // The comment field should be hidden in all other view displays. foreach ($this->entityManager->getViewModes($entity_type) as $id => $view_mode) { $display = entity_get_display($entity_type, $bundle, $id); // Only update existing displays. diff --git a/core/profiles/standard/config/install/comment.type.comment.yml b/core/profiles/standard/config/install/comment.type.comment.yml index b75349c..ceef688 100644 --- a/core/profiles/standard/config/install/comment.type.comment.yml +++ b/core/profiles/standard/config/install/comment.type.comment.yml @@ -1,5 +1,5 @@ id: comment -label: comment +label: Comment description: 'Default comment field' target_entity_type_id: node status: true