Overrides Drupal\Core\Entity\DatabaseStorageController::attachLoad().
Overrides DatabaseStorageController::attachLoad
protected function attachLoad(&$comments, $load_revision = FALSE) {
// Set up standard comment properties.
foreach ($comments as $key => $comment) {
$comment->name = $comment->uid ? $comment->registered_name : $comment->name;
$comment->new = node_mark($comment->nid, $comment->changed);
$comment->node_type = 'comment_node_' . $comment->node_type;
$comments[$key] = $comment;
}
parent::attachLoad($comments, $load_revision);
}