You are here

public function AggregatorController::feedTitle in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/aggregator/src/Controller/AggregatorController.php \Drupal\aggregator\Controller\AggregatorController::feedTitle()

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 197
Contains \Drupal\aggregator\Controller\AggregatorController.

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(),
  ];
}