Closed (outdated)
Project:
Drupal core
Version:
10.3.x-dev
Component:
base system
Priority:
Normal
Category:
Plan
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Mar 2019 at 12:49 UTC
Updated:
3 Jul 2025 at 22:57 UTC
Jump to comment: Most recent
Comments
Comment #2
tim.plunkettOf those 4, LayoutSectionAccessCheck and WorkflowDeleteAccessCheck have @trigger_errors in their
access()method, and the other two have none.The key thing is that the trigger_error CANNOT live outside the class (like most other cases) because when they are gathered as tagged services, they are instantiated. Even if they are not being used.
Comment #3
xjmComment #4
berdirYeah, seems pretty obvious, @deprecated on the class and @trigger_error() in the access() method when it is actually used :)
Comment #9
quietone commentedReviewing @deprecated issues.
I think the last thing to do here is to make sure that Drupal deprecation policy is up to date regarding access checks.
Can someone confirm that?
Comment #14
quietone commentedI have checked the policy and what is said in #4 is documented, https://www.drupal.org/about/core/policies/core-change-policies/drupal-d.... There is also a section for services, https://www.drupal.org/node/2856615/revisions/10420324/view#how-service
I think this can be closed as outdated.
Comment #15
catchYep we figured this out in the interim.
Comment #16
quietone commentedChanging to latest version when this was closed.
Comment #17
xjmCrediting discussion participants (not myself; all I did was fix the title).