diff --git a/core/lib/Drupal/Core/Entity/EntityBundleAccessCheck.php b/core/lib/Drupal/Core/Entity/EntityBundleAccessCheck.php index 678a572503..9fda06c6a1 100644 --- a/core/lib/Drupal/Core/Entity/EntityBundleAccessCheck.php +++ b/core/lib/Drupal/Core/Entity/EntityBundleAccessCheck.php @@ -46,7 +46,7 @@ public function access(Route $route, RouteMatchInterface $route_match, AccountIn } } } - return AccessResult::forbidden(); + return AccessResult::forbidden('The entity bundle does not match the route _entity_bundles requirement.'); } }