summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgit2018-04-10 14:14:33 (GMT)
committertimKruijsen2018-04-10 14:14:33 (GMT)
commite035a448037660d1140ed9ecdc9f24cf7fa560b3 (patch)
treef0c96f34da3f00cbe358096cf35923306291d63e
parent6b1bc72e855c61e4b146d1056568c89057041c2e (diff)
Issue #2959845 by daniel.delaiglesia: Support for icons in menu items8.x-1.12
-rwxr-xr-xsrc/Controller/MenuLinksController.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Controller/MenuLinksController.php b/src/Controller/MenuLinksController.php
index feb9a6c..1c474de 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,