userMenuItems Action?

I want to add an Action to the user menu in the panel builder so that it launches a modal. Seems like MenuItem is just for urls(). Any suggestions? Also, while were on it, can we also adjust the positioning of the theme-switcher. Seem to be in the middle of the user menu items.
Was this page helpful?