Change record status: 
Project: 
Introduced in branch: 
9.3.x
Introduced in version: 
9.3.0
Description: 

menu_list_system_menus() and menu_ui_get_menus() are deprecated in Drupal 9.3.0, and will be removed before Drupal 10.0.0. Instead, use the entity system:

Before Now
$menu_list = menu_list_system_menus();
$menu_list = [
    'tools' => 'Tools',
    'admin' => 'Administration',
    'account' => 'User account menu',
    'main' => 'Main navigation',
    'footer' => 'Footer menu',
  ];
$menu_list = menu_ui_get_menus();
$menu_list = array_map(function ($menu) { return $menu->label(); }, \Drupal\system\Entity\Menu::loadMultiple());
asort($menu_list)

Menu::loadMultiple() returns an array of fully loaded menu config entities.

Impacts: 
Module developers