Issue #2210177 by andypost: Use getSetting() in comment formatter.

8.0.x
webchick 2014-03-05 08:15:28 -08:00
parent 2db8b1f895
commit 4b73643423
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ class CommentDefaultFormatter extends FormatterBase implements ContainerFactoryP
$this->currentUser->hasPermission('administer comments'))) {
$mode = $comment_settings['default_mode'];
$comments_per_page = $comment_settings['per_page'];
if ($cids = comment_get_thread($entity, $field_name, $mode, $comments_per_page, $this->settings['pager_id'])) {
if ($cids = comment_get_thread($entity, $field_name, $mode, $comments_per_page, $this->getSetting('pager_id'))) {
$comments = $this->storageController->loadMultiple($cids);
comment_prepare_thread($comments);
$build = $this->viewBuilder->viewMultiple($comments);