Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
routing system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Jul 2025 at 01:42 UTC
Updated:
8 Oct 2025 at 15:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
julio_retkwaI'll take a look on this
Comment #5
julio_retkwadoes that looks like as it should ?
Comment #6
julio_retkwaComment #9
nicxvan commentedI think it's supposed to be on the branch that was created, not the 11.x.
I'm not sure if that actually causes a problem or not though.
Comment #10
mstrelan commentedI think we should expand the scope to change this everywhere
_controlleris used.The constant is currently used in these places:
\Drupal\jsonapi\Revisions\ResourceVersionRouteEnhancer::enhance
\Drupal\jsonapi\Routing\Routes
\Drupal\Tests\jsonapi\Unit\Routing\RoutesTest
Should we update in the following places too:
\Drupal\Core\Controller\ControllerResolver
\Drupal\Core\Controller\ControllerResolverInterface (docs)
\Drupal\Core\Entity\Enhancer\EntityRouteEnhancer
\Drupal\Core\Entity\EntityResolverManager
\Drupal\Core\Entity\Routing\DefaultHtmlRouteProvider
\Drupal\Core\Routing\Enhancer\FormRouteEnhancer
... probably some other places too
Comment #11
nicxvan commentedLet's take care of all of them and move to the branch the issue created.
Comment #15
neerajsinghRaised PR with fixes in the following files:
Comment #16
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #18
luismagr commentedI've updated the fork with upstream. Let see what the bot says now
Comment #19
smustgrave commentedAppears all instances of
->attributes->get('_controller')has been replaced with the constant.Comment #21
catchCommitted/pushed to 11.x, thanks!