Problem/Motivation
Follow-up to #3342975-5: Deprecate Url::toRenderArray() and Url::renderAccess() - methods are deprecated and should be removed in 11.0.x as it's open
Proposed resolution
Remove following
- \Drupal\Core\Url::toRenderArray()
- \Drupal\Core\Url::renderAccess()
- \Drupal\Core\Url::trustedCallbacks() - probably should return empty array
Remaining tasks
- discuss removal of \Drupal\Core\Url::trustedCallbacks()
- patch/review/commit
User interface changes
no
API changes
no
Data model changes
no
Release notes snippet
| Comment | File | Size | Author |
|---|
Issue fork drupal-3343153
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
andypostComment #3
ankitv18 commentedComment #4
andypostComment #5
gábor hojtsyUpdating title, tags and version number based on recent announcement at https://www.drupal.org/about/core/blog/new-drupal-core-branching-scheme-...
Comment #6
quietone commentedComment #8
samitk commentedComment #9
samitk commentedHI,
Deprecated code from \Drupal\Core\Url has been removed. Please review.
Thanks
Samit K.
Comment #10
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue.
While you are making the above changes, we recommend that you convert this patch to a merge request. Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)
Comment #12
samitk commentedMerge requests is created.
https://git.drupalcode.org/project/drupal/-/merge_requests/6950
Thanks
Samit K.
Comment #13
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. 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 #14
samitk commentedComment #15
karanpagare commentedChanges are as per the proposed resolution. Needs further review from @andypost.
Comment #16
smustgrave commentedAll deprecated code from this file has been removed
Comment #17
alexpottWe never discussed the removal of \Drupal\Core\Url::trustedCallbacks() as per the issue summary.
Can we get a follow-up to remove the method and the interface from this class - then we can proceed here and discuss that on another issue.
Comment #18
smustgrave commentedOpened #3442684: Discuss removal of \Drupal\Core\Url::trustedCallbacks()
Comment #19
catchCommitted/pushed to 11.x, thanks!
Comment #21
catch