33 $f = $this->dic->ui()->factory();
35 $title = $this->dic->language()->txt(
"mm_favorites");
36 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"outlined/icon_fav.svg"), $title);
39 $this->mainmenu->complex($this->
if->identifier(
'mm_pd_sel_items'))
40 ->withSupportsAsynchronousLoading(
true)
43 ->withContentWrapper(
function () use (
$f) {
44 $fav_list = new \ilFavouritesListGUI();
46 return $f->legacy($fav_list->render());
50 ->withAvailableCallable(
51 function () use (
$dic) {
58 ->withVisibilityCallable(
59 $access_helper->isUserLoggedIn($access_helper->isRepositoryReadable(
64 return (
bool) $pdItemsViewSettings->allViewsEnabled() || $pdItemsViewSettings->enabledSelectedItems();
Interface StaticMainMenuProvider.
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)