Example #1
0
 public function menuLists($surname)
 {
     $menu = parent::menuLists($surname);
     if ($this->themeOption('media_menu')) {
         $submenus = array_filter($menu->getSubmenus(), function (Menu $menu) {
             return $menu->getClass() !== 'menu-list-obje';
         });
         $menu->setSubmenus($submenus);
     }
     return $menu;
 }