class FeedHtmlRouteProvider

Same name and namespace in other branches
  1. 8.9.x core/modules/aggregator/src/FeedHtmlRouteProvider.php \Drupal\aggregator\FeedHtmlRouteProvider

Provides HTML routes for the feed entity type.

Hierarchy

Expanded class hierarchy of FeedHtmlRouteProvider

File

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

Namespace

Drupal\aggregator
View source
class FeedHtmlRouteProvider extends AdminHtmlRouteProvider {
  
  /**
   * {@inheritdoc}
   */
  protected function getCanonicalRoute(EntityTypeInterface $entity_type) {
    $route = parent::getCanonicalRoute($entity_type);
    $route->setDefault('_title_controller', '\\Drupal\\aggregator\\Controller\\AggregatorController::feedTitle');
    return $route;
  }
  
  /**
   * {@inheritdoc}
   */
  protected function getEditFormRoute(EntityTypeInterface $entity_type) {
    $route = parent::getEditFormRoute($entity_type);
    $route->setDefault('_title', 'Configure');
    return $route;
  }

}

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