API page: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Menu%21Me...
> MenuLinkTree::checkAccess() needs to be invoked afterwards.
There is no such method.
Issue fork drupal-2873690
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 #12
quietone commentedThis still applies to Drupal 9.5.x.
Comment #16
idebr commentedUpdated the reference to point to
\Drupal\Core\Menu\DefaultMenuLinkTreeManipulators::checkAccess()that implements the menu tree access checks.Comment #17
joachim commentedLGTM.
Comment #18
larowlanLeft a comment, I think we can improve these docs further to provide an example of how you actually invoke the access check