Problem/Motivation
Navigation module implements several TrustedCallback methods. Most of them are implemented defining the TrustedCallback attribute.
However, there is a remaining implementation of the old pattern, based on the TrustedCallbackInterface implementation. It is defined in Drupal\navigation\ShortcutLazyBuilder.
For consistency, would be great to modify this class to follow the new pattern.
Steps to reproduce
N/A
Proposed resolution
Follow the steps described in https://www.drupal.org/node/3349470 to convert the callback.
Remaining tasks
Implement TrustedCallback atttribute in Drupal\navigation\ShortcutLazyBuilder.
User interface changes
N/A
Introduced terminology
N/A
API changes
N/A
Data model changes
N/A
Release notes snippet
N/A
Issue fork drupal-3559573
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:
- 3559573-replace-trustedcallbackinterface-with
changes, plain diff MR !13941
Comments
Comment #2
aryan singh commentedWorking...
Comment #4
aryan singh commentedComment #5
plopescCode looks good, tests are green, and tested locally with no issues.
I think this one can be marked as RTBC.
Comment #8
catchCommitted/pushed to 11.x and cherry-picked to 11.3.x, thanks!