+ /**
+ * Returns the delete multiple form route.
+ *
+ * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
+ * The entity type.
+ *
+ * @return \Symfony\Component\Routing\Route|null
+ * The generated route, if available.
+ */
+ protected function getDeleteMultipleFormRoute(EntityTypeInterface $entity_type) {
+ if ($entity_type->hasLinkTemplate('delete-multiple-form') && $entity_type->hasHandlerClass('form', 'delete-multiple-confirm')) {
+ $route = new Route($entity_type->getLinkTemplate('delete-multiple-form'));
+ $route->setDefault('_form', $entity_type->getFormClass('delete-multiple-confirm'));
+ $route->setDefault('entity_type_id', $entity_type->id());
+ $route->setRequirement('_entity_delete_multiple_access', $entity_type->id());
+ return $route;
+ }
+ }
+