// Just include the sledrun(s) if the condition is fulfilled.
//
-use MobileFrontend\MenuBuilder;
-
// Constants
// ---------
if ($name === 'discovery') {
// delete "Random page". As a removeEntry function is missing,
// a new menu is built here without the random page.
- $new_menu = new MenuBuilder();
+ $new_menu = new MobileFrontend\MenuBuilder();
foreach ($menu->getEntries() as $menuEntryRepresentation) {
$new_entry_name = $menuEntryRepresentation['name'];
if ($new_entry_name == 'random') continue;