Skip to content

Commit

Permalink
UHF-7938: Better comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tuutti committed Jan 13, 2023
1 parent 32785c4 commit f3e0710
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Plugin/Menu/ExternalMenuLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ final class ExternalMenuLink extends MenuLinkBase {
* {@inheritdoc}
*/
public function getDerivativeId() : ? string {
// Return NULL explicitly, so we don't unnecessarily process global
// navigation links in 'translatable_menu_link_uri_iterate_menu()'.
// External menu links share the plugin id with regular 'menu_link_content'
// links. Explicitly return NULL to skip the processing done in
// 'translatable_menu_link_uri_iterate_menu()' function.
return NULL;
}

Expand Down

0 comments on commit f3e0710

Please sign in to comment.