AggregatorController::feedTitle

public AggregatorController::feedTitle(FeedInterface $aggregator_feed)

Route title callback.

Parameters

\Drupal\aggregator\FeedInterface $aggregator_feed: The aggregator feed.

Return value

array The feed label as a render array.

File

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

Class

AggregatorController
Returns responses for aggregator module routes.

Namespace

Drupal\aggregator\Controller

Code

public function feedTitle(FeedInterface $aggregator_feed) {
  return ['#markup' => $aggregator_feed->label(), '#allowed_tags' => Xss::getHtmlTagList()];
}
doc_Drupal
2016-10-29 08:43:53
Comments
Leave a Comment

Please login to continue.