public static function addToMenu(MenuInterface $menu, array $items): void
    {
        $normalisedItems = self::normaliseItems($items);
        foreach ($normalisedItems as $item) {
            $menu->addMenuItem(MenuItemFactory::createMenuItem($item));
        }
    }
public static function addToMenu(MenuInterface $menu, array $items): void
    {
        $normalisedItems = self::normaliseItems($items);
        foreach ($normalisedItems as $item) {
            $menu->addMenuItem(MenuItemFactory::createMenuItem($item));
        }
    }
public static function addToMenu ( MenuInterface $ menu , array $ items ) : void { $ normalisedItems = self :: normaliseItems ( $ items ) ; foreach ( $ normalisedItems as $ item ) { $ menu -> addMenuItem ( MenuItemFactory :: createMenuItem ( $ item ) ) ; } }
Extends the provided menu container by adding the provided menu array

@param \Menu\MenuBuilder\MenuInterface $menu Menu to be extended
@param mixed[] $items List of items to be appended to the provided menu instance
@return void
Extends the provided menu container by adding the provided menu array