Skip to content
Snippets Groups Projects
Commit 4b736434 authored by Angie Byron's avatar Angie Byron
Browse files

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

parent 2db8b1f8
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -130,7 +130,7 @@ public function viewElements(FieldItemListInterface $items) {
$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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment