diff --git a/src/Controller/MenuLinksController.php b/src/Controller/MenuLinksController.php index feb9a6cbc9407e7e28c7226896ef6a157f20fb42..1c474de9c09725328451ff2752e5e5ad64e032e6 100755 --- a/src/Controller/MenuLinksController.php +++ b/src/Controller/MenuLinksController.php @@ -72,7 +72,7 @@ class MenuLinksController extends ControllerBase { 'weight' => $menuLink->weight->getValue()[0]['value'], 'langcode' => $menuLink->langcode->getValue()[0]['value'], 'uuid' => $menuLink->uuid(), - 'attributes' => !empty($menuLink->link->getValue()[0]['options']['attributes']) ? $menuLink->link->getValue()[0]['options']['attributes'] : NULL, + 'options' => !empty($menuLink->link->getValue()[0]['options']) ? $menuLink->link->getValue()[0]['options'] : NULL, ]; if (array_key_exists('drush', $form) && $form['drush'] === TRUE) { @@ -300,7 +300,7 @@ class MenuLinksController extends ControllerBase { 'link' => [ 'uri' => $menuLink['uri'], 'title' => $menuLink['link_title'], - 'options' => !empty($menuLink['attributes']) ? ['attributes' => $menuLink['attributes']] : NULL, + 'options' => !empty($menuLink['options']) ? $menuLink['options'] : NULL, ], 'menu_name' => $menuLink['menu_name'], 'expanded' => $menuLink['expanded'] === '1' ? TRUE : FALSE, @@ -322,7 +322,7 @@ class MenuLinksController extends ControllerBase { ->set('link', [ 'uri' => $menuLink['uri'], 'title' => $menuLink['link_title'], - 'options' => !empty($menuLink['attributes']) ? ['attributes' => $menuLink['attributes']] : NULL, + 'options' => !empty($menuLink['options']) ? $menuLink['options'] : NULL, ]) ->set('expanded', $menuLink['expanded'] === '1' ? TRUE : FALSE) ->set('enabled', $menuLink['enabled'] === '1' ? TRUE : FALSE) @@ -388,7 +388,7 @@ class MenuLinksController extends ControllerBase { 'link' => [ 'uri' => $menuLink['uri'], 'title' => $menuLink['link_title'], - 'options' => !empty($menuLink['attributes']) ? ['attributes' => $menuLink['attributes']] : NULL, + 'options' => !empty($menuLink['options']) ? $menuLink['options'] : NULL, ], 'menu_name' => $menuLink['menu_name'], 'expanded' => $menuLink['expanded'] === '1' ? TRUE : FALSE, @@ -434,7 +434,7 @@ class MenuLinksController extends ControllerBase { 'link' => [ 'uri' => $menuLink['uri'], 'title' => $menuLink['link_title'], - 'options' => !empty($menuLink['attributes']) ? ['attributes' => $menuLink['attributes']] : NULL, + 'options' => !empty($menuLink['options']) ? $menuLink['options'] : NULL, ], 'menu_name' => $menuLink['menu_name'], 'expanded' => $menuLink['expanded'] === '1' ? TRUE : FALSE,