diff --git a/entity.services.yml b/entity.services.yml index e105738941f84a3ee66478893155f44815bb7775..3abb91e40048fddbdf3521862065d017feb4732a 100644 --- a/entity.services.yml +++ b/entity.services.yml @@ -10,7 +10,6 @@ services: tags: - { name: route_enhancer, priority: 20 } - access_checker.entity_revision: class: \Drupal\entity\Access\EntityRevisionRouteAccessChecker arguments: ['@entity_type.manager'] diff --git a/src/Routing/RevisionRouteProvider.php b/src/Routing/RevisionRouteProvider.php index 71adea80d2025267319b08ba6f151825386262d6..f9e6576542eb80bf2b6df6028acf64f239e8a77e 100644 --- a/src/Routing/RevisionRouteProvider.php +++ b/src/Routing/RevisionRouteProvider.php @@ -23,7 +23,6 @@ class RevisionRouteProvider implements EntityRouteProviderInterface { public function getRoutes(EntityTypeInterface $entity_type) { $collection = new RouteCollection(); $entity_type_id = $entity_type->id(); - if ($view_route = $this->getRevisionViewRoute($entity_type)) { $collection->add("entity.$entity_type_id.revision", $view_route); }