File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 * icon?: string,
2828 * color?: string,
2929 * classes?: string,
30- * type?: 'link'|'action'|'settings',
30+ * type?: 'link'|'action'|'settings'|'hidden' ,
3131 * }
3232 * @psalm-type NavigationEntryOutput = array{
3333 * id: string,
@@ -77,6 +77,19 @@ interface INavigationManager {
7777 */
7878 public const string TYPE_GUEST = 'guest ' ;
7979
80+ /**
81+ * Navigation entries that are hidden
82+ *
83+ * Usually an entry like this should not be registered at all, but sometimes
84+ * it can be costly to check if an entry should be shown because group
85+ * memberships and other things have to be considered. As an easy way apps
86+ * can register the closure straight away and then set the type to hidden
87+ * when the closure is resolved.
88+ *
89+ * @since 35.0.0
90+ */
91+ public const string TYPE_HIDDEN = 'hidden ' ;
92+
8093 /**
8194 * Creates a new navigation entry
8295 *
You can’t perform that action at this time.
0 commit comments