Get menu link item from MenuLinkTreeElement Hey I am loading a drupal 8 menu in the following way:

if ($menu != NULL) {
    $tree = \Drupal::menuTree()
    -&gt;load("my_menu", new MenuTreeParameters());


This returns MenuLinkTreeElement objects.
It does not seem possible to fetch the fields attached to the menu item.

How can I do that? Should I load the menu through another function?
You can get the menu link content entity by accessing the uuid with the method getDerivativeId() of the plugin:

if ($link instanceof \Drupal\menu_link_content\Plugin\Menu\MenuLinkContent) {
  $uuid = $link-&gt;getDerivativeId();
  $entity = \Drupal::service('entity.repository')
    -&gt;loadEntityByUuid('menu_link_content', $uuid);
  $field_value = $entity-&gt;field_example-&gt;value;
}