Skip to content
Snippets Groups Projects
Unverified Commit 5564d188 authored by Doug Green's avatar Doug Green
Browse files

Issue #3472463: Place block menu_ui_get_menus() deprecated

parent f34a4e9b
Branches
Tags
No related merge requests found
......@@ -11,6 +11,7 @@ use Drupal\Core\Menu\MenuLinkTreeInterface;
use Drupal\Core\Render\Renderer;
use Drupal\Component\Utility\Html;
use Drupal\smartmenus\SmartmenusUtil;
use Drupal\system\Entity\Menu;
/**
* Provides a 'SmartMenusBlock' block.
......@@ -115,7 +116,7 @@ class SmartMenusBlock extends BlockBase implements ContainerFactoryPluginInterfa
$form['smartmenus']['smartmenus_menu'] = array(
'#type' => 'select',
'#title' => $this->t('Menu'),
'#options' => menu_ui_get_menus(),
'#options' => Menu::loadMultiple(),
'#description' => t('The desired menu to render as a Smartmenu.'),
'#default_value' => $config['smartmenus_menu'] ? $config['smartmenus_menu'] : '',
'#required' => TRUE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment