According to [#1914008] all menu links were converted to entities. We should convert all $element['#original_link']['depth'] pieces of code to

/** @var Drupal\menu_link\Entity\MenuLink $menu_link */
$menu_link = $element['#original_link'];

$menu_link->getDepth();

and other stuff like switching to Twig templates

Comments

m1r1k’s picture

Title: Upgrade menu link function » Upgrade menu thming functions
Issue summary: View changes
markhalliwell’s picture

Status: Active » Closed (fixed)