Skip to content
Snippets Groups Projects
Commit b90377b3 authored by Alex Pott's avatar Alex Pott
Browse files

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

parent 76518e6f
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment