diff --git a/core/modules/aggregator/aggregator.links.menu.yml b/core/modules/aggregator/aggregator.links.menu.yml index aafd082..80177df 100644 --- a/core/modules/aggregator/aggregator.links.menu.yml +++ b/core/modules/aggregator/aggregator.links.menu.yml @@ -4,10 +4,6 @@ aggregator.admin_overview: route_name: aggregator.admin_overview parent: system.admin_config_services weight: 10 -aggregator.page_last: - title: 'Feed aggregator' - weight: 5 - route_name: aggregator.page_last aggregator.feed_add: title: 'Add feed' route_name: aggregator.feed_add diff --git a/core/modules/aggregator/aggregator.routing.yml b/core/modules/aggregator/aggregator.routing.yml index 58d7fcf..47272c0 100644 --- a/core/modules/aggregator/aggregator.routing.yml +++ b/core/modules/aggregator/aggregator.routing.yml @@ -76,11 +76,3 @@ entity.aggregator_feed.delete_form: _permission: 'administer news feeds' options: _admin_route: TRUE - -aggregator.page_last: - path: '/aggregator' - defaults: - _content: '\Drupal\aggregator\Controller\AggregatorController::pageLast' - _title: 'Feed aggregator' - requirements: - _permission: 'access news feeds' diff --git a/core/modules/aggregator/src/Controller/AggregatorController.php b/core/modules/aggregator/src/Controller/AggregatorController.php index 0f70800..bd61229 100644 --- a/core/modules/aggregator/src/Controller/AggregatorController.php +++ b/core/modules/aggregator/src/Controller/AggregatorController.php @@ -61,32 +61,6 @@ public function feedAdd() { } /** - * Builds a listing of aggregator feed items. - * - * @param \Drupal\aggregator\ItemInterface[] $items - * The items to be listed. - * @param array|string $feed_source - * The feed source URL. - * - * @return array - * The rendered list of items for the feed. - */ - protected function buildPageList(array $items, $feed_source = '') { - // Assemble output. - $build = array( - '#type' => 'container', - '#attributes' => array('class' => array('aggregator-wrapper')), - ); - $build['feed_source'] = is_array($feed_source) ? $feed_source : array('#markup' => $feed_source); - if ($items) { - $build['items'] = $this->entityManager()->getViewBuilder('aggregator_item') - ->viewMultiple($items, 'default'); - $build['pager'] = array('#theme' => 'pager'); - } - return $build; - } - - /** * Refreshes a feed, then redirects to the overview page. * * @param \Drupal\aggregator\FeedInterface $aggregator_feed @@ -167,19 +141,6 @@ public function adminOverview() { } /** - * Displays the most recent items gathered from any feed. - * - * @return string - * The rendered list of items for the feed. - */ - public function pageLast() { - $items = $this->entityManager()->getStorage('aggregator_item')->loadAll(20); - $build = $this->buildPageList($items); - $build['#attached']['drupal_add_feed'][] = array('aggregator/rss', $this->config('system.site')->get('name') . ' ' . $this->t('aggregator')); - return $build; - } - - /** * Route title callback. * * @param \Drupal\aggregator\FeedInterface $aggregator_feed