diff --git a/core/modules/menu_link/lib/Drupal/menu_link/Entity/MenuLink.php b/core/modules/menu_link/lib/Drupal/menu_link/Entity/MenuLink.php index 7f7baaa..0a35671 100644 --- a/core/modules/menu_link/lib/Drupal/menu_link/Entity/MenuLink.php +++ b/core/modules/menu_link/lib/Drupal/menu_link/Entity/MenuLink.php @@ -412,7 +412,7 @@ public function findParent(MenuLinkStorageControllerInterface $storage_controlle $plid = $this->getParentLinkId(); // This item is explicitely top-level, skip the rest of the parenting. - if (!$plid === 0) { + if ($plid === 0) { return $parent; }