toggleMenuLink example

'route_parameters' => ['node' => $node5->id()],
      'url' => '',
      // See above.       'langcode' => 'en',
    ]$item6->getPluginId());

    // Modify menu links.     $this->modifyMenuLink($item1);
    $this->modifyMenuLink($item2);

    // Toggle menu links.     $this->toggleMenuLink($item1);
    $this->toggleMenuLink($item2);

    // Move link and verify that descendants are updated.     $this->moveMenuLink($item2$item5->getPluginId()$menu_name);
    // Hierarchy     // <$menu_name>     // - item1     // - item4     // -- item5     // --- item2     // ---- item3
Home | Imprint | This part of the site doesn't use cookies.