function AdminHtmlRouteProvider::getEditFormRoute
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/Routing/AdminHtmlRouteProvider.php \Drupal\Core\Entity\Routing\AdminHtmlRouteProvider::getEditFormRoute()
- 10 core/lib/Drupal/Core/Entity/Routing/AdminHtmlRouteProvider.php \Drupal\Core\Entity\Routing\AdminHtmlRouteProvider::getEditFormRoute()
- 11.x core/lib/Drupal/Core/Entity/Routing/AdminHtmlRouteProvider.php \Drupal\Core\Entity\Routing\AdminHtmlRouteProvider::getEditFormRoute()
Overrides DefaultHtmlRouteProvider::getEditFormRoute
2 calls to AdminHtmlRouteProvider::getEditFormRoute()
- FeedHtmlRouteProvider::getEditFormRoute in core/
modules/ aggregator/ src/ FeedHtmlRouteProvider.php - MediaRouteProvider::getCanonicalRoute in core/
modules/ media/ src/ Routing/ MediaRouteProvider.php
1 method overrides AdminHtmlRouteProvider::getEditFormRoute()
- FeedHtmlRouteProvider::getEditFormRoute in core/
modules/ aggregator/ src/ FeedHtmlRouteProvider.php
File
-
core/
lib/ Drupal/ Core/ Entity/ Routing/ AdminHtmlRouteProvider.php, line 40
Class
- AdminHtmlRouteProvider
- Provides HTML routes for entities with administrative add/edit/delete pages.
Namespace
Drupal\Core\Entity\RoutingCode
protected function getEditFormRoute(EntityTypeInterface $entity_type) {
if ($route = parent::getEditFormRoute($entity_type)) {
$route->setOption('_admin_route', TRUE);
return $route;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.