WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features\Navigation

Menu::get_item_menu_id() public WC 1.0

Get an item's menu ID from its parent.

{} It's a method of the class: Menu{}

No Hooks.

Return

String. Nothing.

Usage

$result = Menu::get_item_menu_id( $item );
$item(array) (required)
Item args.

Code of Menu::get_item_menu_id() WC 5.3.0

<?php
public static function get_item_menu_id( $item ) {
	$favorites = Favorites::get_all();
	if ( is_array( $favorites ) && ! empty( $favorites ) && in_array( $item['id'], $favorites, true ) ) {
		return 'favorites';
	}

	if ( isset( $item['parent'] ) && isset( self::$menu_items[ $item['parent'] ] ) ) {
		$menu_id = self::$menu_items[ $item['parent'] ]['menuId'];
		return 'favorites' === $menu_id
			? 'plugins'
			: $menu_id;
	}

	return $item['menuId'];
}