Commit b90377b3 authored by alexpott's avatar alexpott

Issue #1999398 by chertzog: Use Symfony Request for menu module.

parent 76518e6f
......@@ -358,8 +358,9 @@ function menu_parent_options(array $menus, MenuLink $menu_link = NULL, $type = N
*/
function menu_parent_options_js() {
$available_menus = array();
if (isset($_POST['menus']) && count($_POST['menus'])) {
foreach ($_POST['menus'] as $menu) {
$menus = Drupal::request()->request->get('menus');
if (count($menus)) {
foreach ($menus as $menu) {
$available_menus[$menu] = $menu;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment