AggregatorController::pageLast

public AggregatorController::pageLast()

Displays the most recent items gathered from any feed.

Return value

string The rendered list of items for the feed.

File

core/modules/aggregator/src/Controller/AggregatorController.php, line 176

Class

AggregatorController
Returns responses for aggregator module routes.

Namespace

Drupal\aggregator\Controller

Code

public function pageLast() {
  $items = $this->entityManager()->getStorage('aggregator_item')->loadAll(20);
  $build = $this->buildPageList($items);
  $build['#attached']['feed'][] = array('aggregator/rss', $this->config('system.site')->get('name') . ' ' . $this->t('aggregator'));
  return $build;
}
doc_Drupal
2016-10-29 08:43:53
Comments
Leave a Comment

Please login to continue.