function FeedHtmlRouteProvider::getCanonicalRoute

Same name in other branches
  1. 8.9.x core/modules/aggregator/src/FeedHtmlRouteProvider.php \Drupal\aggregator\FeedHtmlRouteProvider::getCanonicalRoute()

Overrides DefaultHtmlRouteProvider::getCanonicalRoute

File

core/modules/aggregator/src/FeedHtmlRouteProvider.php, line 16

Class

FeedHtmlRouteProvider
Provides HTML routes for the feed entity type.

Namespace

Drupal\aggregator

Code

protected function getCanonicalRoute(EntityTypeInterface $entity_type) {
    $route = parent::getCanonicalRoute($entity_type);
    $route->setDefault('_title_controller', '\\Drupal\\aggregator\\Controller\\AggregatorController::feedTitle');
    return $route;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.