function AdminHtmlRouteProvider::getDeleteFormRoute
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/Routing/AdminHtmlRouteProvider.php \Drupal\Core\Entity\Routing\AdminHtmlRouteProvider::getDeleteFormRoute()
- 8.9.x core/lib/Drupal/Core/Entity/Routing/AdminHtmlRouteProvider.php \Drupal\Core\Entity\Routing\AdminHtmlRouteProvider::getDeleteFormRoute()
- 11.x core/lib/Drupal/Core/Entity/Routing/AdminHtmlRouteProvider.php \Drupal\Core\Entity\Routing\AdminHtmlRouteProvider::getDeleteFormRoute()
Overrides DefaultHtmlRouteProvider::getDeleteFormRoute
File
-
core/
lib/ Drupal/ Core/ Entity/ Routing/ AdminHtmlRouteProvider.php, line 50
Class
- AdminHtmlRouteProvider
- Provides HTML routes for entities with administrative add/edit/delete pages.
Namespace
Drupal\Core\Entity\RoutingCode
protected function getDeleteFormRoute(EntityTypeInterface $entity_type) {
if ($route = parent::getDeleteFormRoute($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.