class FeedHtmlRouteProvider in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/aggregator/src/FeedHtmlRouteProvider.php \Drupal\aggregator\FeedHtmlRouteProvider
Provides HTML routes for the feed entity type.
Hierarchy
- class \Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider implements EntityHandlerInterface, EntityRouteProviderInterface
- class \Drupal\Core\Entity\Routing\AdminHtmlRouteProvider
- class \Drupal\aggregator\FeedHtmlRouteProvider
- class \Drupal\Core\Entity\Routing\AdminHtmlRouteProvider
Expanded class hierarchy of FeedHtmlRouteProvider
File
- core/
modules/ aggregator/ src/ FeedHtmlRouteProvider.php, line 16 - Contains \Drupal\aggregator\FeedHtmlRouteProvider.
Namespace
Drupal\aggregatorView 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;
}
}