parameters: (klass, user=None)
return_statement: return [item for item in items if item.for_user(user)]
docstring: Default implementation of get_menu_items()
docstring_summary: Default implementation of get_menu_items()
docstring_tokens: Default implementation of get_menu_items ()
function: def get_menu_items(klass, user=None):
          """
          Default implementation of get_menu_items()
          """
          logout = menus.MenuItem(
              href=reverse("logout"), icon="fa-sign-out", index=1000
          )
          admin = menus.MenuItem(
              href="/admin/", icon="fa-cogs", display=_("Admin"),
              index=999
          )
          items = []
          items += klass.menuitems
          if user:
              if not user.is_authenticated:
                  return []
              else:
                  items.append(logout)
                  if user.is_staff:
                      items.append(admin)
          return [item for item in items if item.for_user(user)]
function_tokens: def get_menu_items ( klass , user = None ) : logout = menus . MenuItem ( href = reverse ( "logout" ) , icon = "fa-sign-out" , index = 1000 ) admin = menus . MenuItem ( href = "/admin/" , icon = "fa-cogs" , display = _ ( "Admin" ) , index = 999 ) items = [ ] items += klass . menuitems if user : if not user . is_authenticated : return [ ] else : items . append ( logout ) if user . is_staff : items . append ( admin ) return [ item for item in items if item . for_user ( user ) ]