How to update a menu link created with MenuLinkContent::create()? I know how to search for menu items created with *.links.menu.yml:

$menu_link_manager = \Drupal::service('plugin.manager.menu.link');
$menu_links = $menu_link_manager-&gt;loadLinksByRoute('user.page');
foreach ($menu_links as $menu_link) {
  // Do something
}


However I'm looking for a way to search for and update a menu item created with MenuLinkContent::create():

$home_new = MenuLinkContent::create(array(
  'title' =&gt; t('Home'),
  'link' =&gt; array('uri' =&gt; 'internal:/'),
  'menu_name' =&gt; 'main',
));
$home_new-&gt;save();


After creating this menu item, how do I look it back up again to modify it?
If you remember the id after saving the menu link

$id = $home_new-&gt;id();


You can load it directly:

$link = MenuLinkContent::load($id);


If you don't know the id, you can load the menu link by a property:

$links = \Drupal::entityTypeManager()-&gt;getStorage('menu_link_content')
  -&gt;loadByProperties(['title' =&gt; 'Home']);

if ($link = reset($links)) {
  // found a link with title "Home"
}