#2199381: Add \Drupal\Core\Path\PathInterface replaced a.o. menu_tree_check_access() by class methods.
I happened to spot a forgotten comment while rerolling something against HEAD, and posted it there. My dear friend Xano says I should fill a new issue and I'm learning to keep my discussions with him about "scope" to a minimum :) So, new issue.
Could this comment be fixed?
*
* This function may be used build the data for a menu tree only, for example
* to further massage the data manually before further processing happens.
- * menu_tree_check_access() needs to be invoked afterwards.
+ * $this->checkAccess() needs to be invoked afterwards.
*
* @param string $menu_name
* The name of the menu.
Comments
Comment #1
jhodgdonLooks good. Can you instead of saying $this->checkAccess() refer to MenuTree::checkAccess() instead? That will work better for making links. Thanks!
Comment #2
roderikAlright. Thanks for the pointer, I'll remember for future situations.
Comment #3
eojthebraveLooks good to me. Links work fine after the update. Thanks!
Comment #5
jhodgdonThanks! Committed to 8.x.