#110165DocHeaderComponent renders only the first registered menu in backend modules
Description
In TYPO3 v13 it was possible to register and render multiple doc header menus in backend modules:
$menuRegistry->addMenu($menu1);
$menuRegistry->addMenu($menu2);
After upgrading to TYPO3 v14, both menus are still correctly registered in MenuRegistry, but only the first menu is rendered. The reason appears to be DocHeaderComponent::processMenuRegistry(), which currently does in line 457:
// Use the first menu (most controllers only register one menu)
$menu = reset($menus);
instead of processing all registered menus. This seems to be a regression or bug compared to TYPO3 v13, where multiple doc header menus were supported.
Additionally, the current behavior is inconsistent: MenuRegistry still allows registering multiple menus, but the view only renders the first one. Either all registered menus should be rendered, or the API should explicitly restrict the registry to a single menu.
Preferably, support for multiple doc header menus should be restored, as this was possible in TYPO3 v13 and is useful for backend modules requiring more than one independent dropdown.