diff --git a/src/Plugin/MenuItemsFormat/NestedMenuItemsFormat.php b/src/Plugin/MenuItemsFormat/NestedMenuItemsFormat.php index a99ff5c257a70dc2e6e54b95e4a75a595b179902..b9c9a9ce297f9213e493f9f6380145192d54a44a 100644 --- a/src/Plugin/MenuItemsFormat/NestedMenuItemsFormat.php +++ b/src/Plugin/MenuItemsFormat/NestedMenuItemsFormat.php @@ -173,7 +173,10 @@ class NestedMenuItemsFormat extends MenuItemsFormatBase implements ContainerFact $cache->addCacheableDependency($url); $id = $menuLink->getPluginId(); - [$plugin, $menuLinkEntityId] = explode(':', $id); + $plugin = ''; + if (strpos($id, ':') !== FALSE) { + [$plugin, $menuLinkEntityId] = explode(':', $id); + } $data = [ 'id' => $id,