Get menu item of a content type
That's stored in the third party settings of the node type.

$type = NodeType::load('article');
$type-&gt;getThirdPartySetting('menu_ui', 'parent')


See also menu_ui_get_menu_link_defaults().