public function AggregatorController::pageLast

Displays the most recent items gathered from any feed.

Return value

string The rendered list of items for the feed.

1 string reference to 'AggregatorController::pageLast'
aggregator.routing.yml in drupal/core/modules/aggregator/aggregator.routing.yml
drupal/core/modules/aggregator/aggregator.routing.yml

File

drupal/core/modules/aggregator/lib/Drupal/aggregator/Controller/AggregatorController.php, line 220
Contains \Drupal\aggregator\Controller\AggregatorController.

Class

AggregatorController
Returns responses for aggregator module routes.

Namespace

Drupal\aggregator\Controller

Code

public function pageLast() {
  drupal_add_feed('aggregator/rss', $this->configFactory
    ->get('system.site')
    ->get('name') . ' ' . t('aggregator'));

  // @todo Refactor this function once after all controller conversions are
  // done.
  $this->moduleHandler
    ->loadInclude('aggregator', 'inc', 'aggregator.pages');
  $items = aggregator_load_feed_items('sum');

  // @todo Refactor this function once after all controller conversions are
  // done.
  return _aggregator_page_list($items, arg(1));
}