ExternalShareMenuAction
extends SimpleMenuAction
in package
Class LinkMenuAction
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- ExternalShareMenuAction constructor.
- getData() : array{id: string, label: string, href: string, icon: string, details: string|null}
- Return JSON data to let the frontend render the menu entry.
- getIcon() : string
- The icon CSS class to use.
- getId() : string
- getLabel() : string
- The translated label of the menu item.
- getLink() : string
- The link this menu item points to.
- getPriority() : int
- render() : string
- Custom render function.
Properties
$detail
private
string
$detail
$icon
private
string
$icon
$id
private
string
$id
$label
private
string
$label
$link
private
string
$link
$priority
private
int
$priority
Methods
__construct()
ExternalShareMenuAction constructor.
public
__construct(string $label, string $icon, string $owner, string $displayname, string $shareName) : mixed
Parameters
- $label : string
-
Translated label
- $icon : string
-
Icon CSS class
- $owner : string
-
Owner user ID (unused)
- $displayname : string
-
Display name of the owner (unused)
- $shareName : string
-
Name of the share (unused)
Tags
getData()
Return JSON data to let the frontend render the menu entry.
public
getData() : array{id: string, label: string, href: string, icon: string, details: string|null}
Tags
Return values
array{id: string, label: string, href: string, icon: string, details: string|null}getIcon()
The icon CSS class to use.
public
getIcon() : string
Tags
Return values
stringgetId()
public
getId() : string
Tags
Return values
stringgetLabel()
The translated label of the menu item.
public
getLabel() : string
Tags
Return values
stringgetLink()
The link this menu item points to.
public
getLink() : string
Tags
Return values
stringgetPriority()
public
getPriority() : int
Tags
Return values
intrender()
Custom render function.
public
render() : string
The returned HTML must be wrapped within a listitem (<li>...</li>
).
- If an empty string is returned, the default design is used (based on the label and link specified).