38 $f = $this->dic->ui()->factory();
39 $txt =
function (
string $id):
string {
40 return $this->dic->language()->txt(
$id);
44 return $this->
if->identifier(
$id);
48 $children[] = $mb->linkItem(
$id(
'personal_profile'))
49 ->
withAction(
"ilias.php?baseClass=ilDashboardGUI&cmd=jumpToProfile")
50 ->withTitle(
$txt(
"personal_profile"))
54 $children[] = $mb->linkItem(
$id(
'personal_settings'))
55 ->
withAction(
"ilias.php?baseClass=ilDashboardGUI&cmd=jumpToSettings")
56 ->withTitle(
$txt(
"personal_settings"))
58 ->withSymbol(
$f->symbol()->icon()->custom(
ilUtil::getImagePath(
"page_editor/icon_personal_settings.svg"),
$txt(
"personal_settings")));
60 $children[] = $mb->linkItem(
$id(
'logout'))
63 ->withTitle(
$txt(
"logout"))
67 $item[] = $mb->topParentItem(
$id(
'user'))
69 ->
withTitle($this->dic->language()->txt(
"info_view_of_user"))
71 ->withVisibilityCallable($access_checks->isUserLoggedIn())
72 ->withChildren($children);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Class BasicAccessCheckClosuresSingleton.
@ilCtrl_Calls ilStartUpGUI: ilAccountRegistrationGUI, ilPasswordAssistanceGUI, ilLoginPageGUI,...
static logoutUrl(array $parameters=[])
Return the logout URL with a valid CSRF token.
Util class various functions, usage as namespace.
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
Interface IdentificationInterface.
withSymbol(Symbol $symbol)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...