protected function AdminHtmlRouteProvider::getDeleteMultipleFormRoute in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/Routing/AdminHtmlRouteProvider.php \Drupal\Core\Entity\Routing\AdminHtmlRouteProvider::getDeleteMultipleFormRoute()
- 10 core/lib/Drupal/Core/Entity/Routing/AdminHtmlRouteProvider.php \Drupal\Core\Entity\Routing\AdminHtmlRouteProvider::getDeleteMultipleFormRoute()
Returns the delete multiple form route.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.
Return value
\Symfony\Component\Routing\Route|null The generated route, if available.
Overrides DefaultHtmlRouteProvider::getDeleteMultipleFormRoute
File
- core/
lib/ Drupal/ Core/ Entity/ Routing/ AdminHtmlRouteProvider.php, line 60
Class
- AdminHtmlRouteProvider
- Provides HTML routes for entities with administrative add/edit/delete pages.
Namespace
Drupal\Core\Entity\RoutingCode
protected function getDeleteMultipleFormRoute(EntityTypeInterface $entity_type) {
if ($route = parent::getDeleteMultipleFormRoute($entity_type)) {
$route
->setOption('_admin_route', TRUE);
return $route;
}
}