Loading
Issue #3643704: Use entity create access on the add content type route
The content type add route (node.type_add) now uses _entity_create_access instead of only _permission: 'administer content types', so hook_entity_create_access() is called for it. That permission is already the admin_permission of node_type, so nothing changes for sites without the hook.
The kernel test checks a user without the permission is denied, a user with it is allowed, and then a create-access hook that returns forbidden blocks the route. That last check fails without the routing change.
Closes #3643704
AI-Generated: Yes (I used Claude to help write the code and tests. I reviewed and tested it before pushing.)