Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Entity / Routing / AdminHtmlRouteProvider.php
index 1abee11ed5892fa9947ab846cb947309c28b45f9..b04fc3ebd3bea1e1eeb3f0bf2e1b54e28cec6439 100644 (file)
@@ -54,4 +54,14 @@ class AdminHtmlRouteProvider extends DefaultHtmlRouteProvider {
     }
   }
 
+  /**
+   * {@inheritdoc}
+   */
+  protected function getDeleteMultipleFormRoute(EntityTypeInterface $entity_type) {
+    if ($route = parent::getDeleteMultipleFormRoute($entity_type)) {
+      $route->setOption('_admin_route', TRUE);
+      return $route;
+    }
+  }
+
 }