Drupal 8  8.0.2
AggregatorController Class Reference
Inheritance diagram for AggregatorController:

Public Member Functions

 __construct (DateFormatterInterface $date_formatter)
 
 feedAdd ()
 
 feedRefresh (FeedInterface $aggregator_feed)
 
 pageLast ()
 
 feedTitle (FeedInterface $aggregator_feed)
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Member Functions

 buildPageList (array $items, $feed_source= '')
 

Protected Attributes

 $dateFormatter
 

Detailed Description

Returns responses for aggregator module routes.

Constructor & Destructor Documentation

__construct ( DateFormatterInterface  $date_formatter)

Constructs a object.

Parameters
\Drupal\Core\Datetime\DateFormatterInterface$date_formatterThe date formatter service.

Member Function Documentation

buildPageList ( array  $items,
  $feed_source = '' 
)
protected

Builds a listing of aggregator feed items.

Parameters
\Drupal\aggregator\ItemInterface[]$items The items to be listed.
array | string$feed_sourceThe feed source URL.
Returns
array The rendered list of items for the feed.

References Drupal\entityManager().

Referenced by AggregatorController\pageLast().

Here is the call graph for this function:

Here is the caller graph for this function:

static create ( ContainerInterface  $container)
static

{}

feedAdd ( )

Presents the aggregator feed creation form.

Returns
array A form array as expected by drupal_render().

References Drupal\entityManager().

Here is the call graph for this function:

feedRefresh ( FeedInterface  $aggregator_feed)

Refreshes a feed, then redirects to the overview page.

Parameters
\Drupal\aggregator\FeedInterface$aggregator_feedAn object describing the feed to be refreshed.
Returns
A redirection to the admin overview page.
Exceptions
\Symfony\Component\HttpKernel\Exception\AccessDeniedHttpExceptionIf the query token is missing or invalid.

References EntityInterface\label(), FeedInterface\refreshItems(), and t().

Here is the call graph for this function:

feedTitle ( FeedInterface  $aggregator_feed)

Route title callback.

Parameters
\Drupal\aggregator\FeedInterface$aggregator_feedThe aggregator feed.
Returns
array The feed label as a render array.

References Xss\getHtmlTagList(), and EntityInterface\label().

Here is the call graph for this function:

pageLast ( )

Displays the most recent items gathered from any feed.

Returns
string The rendered list of items for the feed.

References AggregatorController\buildPageList(), Drupal\config(), Drupal\entityManager(), and t().

Here is the call graph for this function:


The documentation for this class was generated from the following file: