code: def modify_submenu_items(
          self, menu_items, current_page, current_ancestor_ids, current_site,
          allow_repeating_parents, apply_active_classes, original_menu_tag,
          menu_instance=None, request=None, use_absolute_page_urls=False,
      ):
          
          if (allow_repeating_parents and menu_items and self.repeat_in_subnav):
              """
              This page should have a version of itself repeated alongside
              children in the subnav, so we create a new item and prepend it to
              menu_items.
              """
              repeated_item = self.get_repeated_menu_item(
                  current_page=current_page,
                  current_site=current_site,
                  apply_active_classes=apply_active_classes,
                  original_menu_tag=original_menu_tag,
                  use_absolute_page_urls=use_absolute_page_urls,
                  request=request,
              )
              menu_items.insert(0, repeated_item)
          return menu_items
docs: Make any necessary modifications to `menu_items` and return the list
          back to the calling menu tag to render in templates. Any additional
          items added should have a `text` and `href` attribute as a minimum.
  
          `original_menu_tag` should be one of 'main_menu', 'section_menu' or
          'children_menu', which should be useful when extending/overriding.