diff --git a/core/modules/aggregator/lib/Drupal/aggregator/FeedViewBuilder.php b/core/modules/aggregator/lib/Drupal/aggregator/FeedViewBuilder.php index 878e23f..bc0d82b 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/FeedViewBuilder.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/FeedViewBuilder.php @@ -59,7 +59,7 @@ public function buildComponents(array &$build, array $entities, array $displays, if ($display->getComponent('items')) { // When in summary view mode respect the list_max setting. - $limit = $this->config->get('source.list_max'); + $limit = $view_mode == 'summary' ? $this->config->get('source.list_max') : 20; // Retrieve the items attached to this feed. $items = $this->entityManager ->getStorage('aggregator_item') @@ -69,7 +69,7 @@ public function buildComponents(array &$build, array $entities, array $displays, ->getViewBuilder('aggregator_item') ->viewMultiple($items, $view_mode, $langcode); - if ($limit && $view_mode != 'summary') { + if ($view_mode != 'summary') { // Also add the pager. $build[$id]['pager'] = array('#theme' => 'pager'); }