lib/Menu.php
public function find_parent_item_in_menu( $menu_items, $parent_id ) {
		foreach ( $menu_items as &$item ) {
			if ( $item->ID == $parent_id ) {
				return $item;
			}
		}
	}
public function find_parent_item_in_menu( $menu_items, $parent_id ) {
		foreach ( $menu_items as &$item ) {
			if ( $item->ID == $parent_id ) {
				return $item;
			}
		}
	}
public function find_parent_item_in_menu ( $ menu_items , $ parent_id ) { foreach ( $ menu_items as & $ item ) { if ( $ item -> ID == $ parent_id ) { return $ item ; } } }
Find a parent menu item in a set of menu items.

@api
@param array $menu_items An array of menu items.
@param int   $parent_id  The parent ID to look for.
@return \Timber\MenuItem|bool A menu item. False if no parent was found.
Find a parent menu item in a set of menu items .