X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcomment%2Fsrc%2FPlugin%2Fviews%2Ffield%2FStatisticsLastCommentName.php;h=f88c0498d3d0844876dc0355a6f872b6029856c8;hp=fa24c3ffe823af6574c11e677aed202e5ba0114f;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/comment/src/Plugin/views/field/StatisticsLastCommentName.php b/web/core/modules/comment/src/Plugin/views/field/StatisticsLastCommentName.php index fa24c3ffe..f88c0498d 100644 --- a/web/core/modules/comment/src/Plugin/views/field/StatisticsLastCommentName.php +++ b/web/core/modules/comment/src/Plugin/views/field/StatisticsLastCommentName.php @@ -70,7 +70,7 @@ class StatisticsLastCommentName extends FieldPluginBase { '#theme' => 'username', '#account' => $account, ]; - return drupal_render($username); + return \Drupal::service('renderer')->render($username); } else { return $this->sanitizeValue($this->getValue($values));