3 namespace Drupal\aggregator;
5 use Drupal\Core\Entity\EntityTypeInterface;
6 use Drupal\Core\Entity\Routing\AdminHtmlRouteProvider;
9 * Provides HTML routes for the feed entity type.
11 class FeedHtmlRouteProvider extends AdminHtmlRouteProvider {
16 protected function getCanonicalRoute(EntityTypeInterface $entity_type) {
17 $route = parent::getCanonicalRoute($entity_type);
18 $route->setDefault('_title_controller', '\Drupal\aggregator\Controller\AggregatorController::feedTitle');
26 protected function getEditFormRoute(EntityTypeInterface $entity_type) {
27 $route = parent::getEditFormRoute($entity_type);
29 $route->setDefault('_title', 'Configure');