function aggregator_page_source

Page callback: Displays all the items captured from the particular feed.

Parameters

\Drupal\aggregator\Plugin\Core\Entity\Feed $feed: The feed for which to display all items.

Return value

string The rendered list of items for the feed.

See also

aggregator_menu()

1 call to aggregator_page_source()
aggregator_page_source_form in drupal/core/modules/aggregator/aggregator.pages.inc
Form constructor to show all items captured from a feed.
1 string reference to 'aggregator_page_source'
aggregator_menu in drupal/core/modules/aggregator/aggregator.module
Implements hook_menu().

File

drupal/core/modules/aggregator/aggregator.pages.inc, line 22
User page callbacks for the Aggregator module.

Code

function aggregator_page_source(Feed $feed) {
  $feed_source = entity_view($feed, 'default');

  // It is safe to include the fid in the query because it's loaded from the
  // database by aggregator_feed_load().
  $items = aggregator_load_feed_items('source', $feed);
  return _aggregator_page_list($items, arg(3), $feed_source);
}