[12.x] - Follow-up - Throw an \InvalidArgumentException instead of raising a deprecation error when a _entity_create_access route requirement is set without bundle

Created on 7 February 2025, about 1 month ago

Follow-up to issue 🐛 EntityCreateAccessCheck needs to enforce a bundle is set by the route for entity types that support bundles Needs work

Make EntityCreateAccessCheck::access() throw an \InvalidArgumentException instead of raising a deprecation error when a _entity_create_access route requirement is set without bundle.

Remaining tasks

  1. Make EntityCreateAccessCheck::access() throw an \InvalidArgumentException instead of raising a deprecation error.
  2. Update EntityCreateAccessCheckTest::testAccessThrowsExceptionWhenNoBundleSpecified() to expect an \InvalidArgumentException instead of expecting a deprecation and remove the @group legacy in the docblock.
📌 Task
Status

Postponed

Version

11.0 🔥

Component

entity system

Created by

🇪🇸Spain vidorado Logroño (La Rioja)

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024