Skip to content
Snippets Groups Projects

Check the parent link by plid before checking the path.

Open Damien McKenna requested to merge issue/drupal-3505763:3505763-menulinkparent into 11.x
1 file
+ 7
0
Compare changes
  • Side-by-side
  • Inline
@@ -195,6 +195,13 @@ public function transform($value, MigrateExecutableInterface $migrate_executable
return $link->getPluginId();
}
// Check if the parent menu item is already in the system, i.e. it was
// manually created e.g. using default content.
$link = $this->menuLinkStorage->load($parent_id);
if (!empty($link)) {
return $link->getPluginId();
}
// Parent could not be determined by ID, so we try to determine by the
// combination of the menu name and parent link path.
if (isset($value[1])) {
Loading