diff --git a/core/modules/comment/src/CommentViewBuilder.php b/core/modules/comment/src/CommentViewBuilder.php index 3def408..7fe663f 100644 --- a/core/modules/comment/src/CommentViewBuilder.php +++ b/core/modules/comment/src/CommentViewBuilder.php @@ -31,7 +31,7 @@ class CommentViewBuilder extends EntityViewBuilder { protected $currentUser; /** - * Constructs a new FeedViewBuilder. + * Constructs a new CommentViewBuilder. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type definition. @@ -105,7 +105,7 @@ public function buildComponents(array &$build, array $entities, array $displays, parent::buildComponents($build, $entities, $displays, $view_mode, $langcode); - // A counter that helps track how indented we are. + // A counter to track the indentation level. $current_indent = 0; foreach ($entities as $id => $entity) { @@ -120,8 +120,7 @@ public function buildComponents(array &$build, array $entities, array $displays, } else { // Set zero if this comment is on the same level as the previous one - // or (negative) amount of divs to close to get to this comment's - // indent level. + // or negative value to point an amount indents to close. $build[$id]['#comment_indent'] = $comment_indent - $current_indent; $current_indent = $comment_indent; }