MenuItem
in package
Tags
Table of Contents
Methods
- linkToCrud() : CrudMenuItem
- linkToDashboard() : DashboardMenuItem
- linkToExitImpersonation() : ExitImpersonationMenuItem
- linkToLogout() : LogoutMenuItem
- linkToRoute() : RouteMenuItem
- linkToUrl() : UrlMenuItem
- section() : SectionMenuItem
- subMenu() : SubMenuItem
- __construct() : mixed
Methods
linkToCrud()
public
static linkToCrud(TranslatableInterface|string $label, string|null $icon, string $entityFqcn) : CrudMenuItem
Parameters
- $label : TranslatableInterface|string
- $icon : string|null
-
The full CSS classes of the FontAwesome icon to render (see https://fontawesome.com/v6/search?m=free)
- $entityFqcn : string
Return values
CrudMenuItemlinkToDashboard()
public
static linkToDashboard(TranslatableInterface|string $label[, string|null $icon = null ]) : DashboardMenuItem
Parameters
- $label : TranslatableInterface|string
- $icon : string|null = null
-
The full CSS classes of the FontAwesome icon to render (see https://fontawesome.com/v6/search?m=free)
Return values
DashboardMenuItemlinkToExitImpersonation()
public
static linkToExitImpersonation(TranslatableInterface|string $label[, string|null $icon = null ]) : ExitImpersonationMenuItem
Parameters
- $label : TranslatableInterface|string
- $icon : string|null = null
-
The full CSS classes of the FontAwesome icon to render (see https://fontawesome.com/v6/search?m=free)
Return values
ExitImpersonationMenuItemlinkToLogout()
public
static linkToLogout(TranslatableInterface|string $label[, string|null $icon = null ]) : LogoutMenuItem
Parameters
- $label : TranslatableInterface|string
- $icon : string|null = null
-
The full CSS classes of the FontAwesome icon to render (see https://fontawesome.com/v6/search?m=free)
Return values
LogoutMenuItemlinkToRoute()
public
static linkToRoute(TranslatableInterface|string $label, string|null $icon, string $routeName[, array<string|int, mixed> $routeParameters = [] ]) : RouteMenuItem
Parameters
- $label : TranslatableInterface|string
- $icon : string|null
-
The full CSS classes of the FontAwesome icon to render (see https://fontawesome.com/v6/search?m=free)
- $routeName : string
- $routeParameters : array<string|int, mixed> = []
Return values
RouteMenuItemlinkToUrl()
public
static linkToUrl(TranslatableInterface|string $label, string|null $icon, string $url) : UrlMenuItem
Parameters
- $label : TranslatableInterface|string
- $icon : string|null
-
The full CSS classes of the FontAwesome icon to render (see https://fontawesome.com/v6/search?m=free)
- $url : string
Return values
UrlMenuItemsection()
public
static section([TranslatableInterface|string|null $label = null ][, string|null $icon = null ]) : SectionMenuItem
Parameters
- $label : TranslatableInterface|string|null = null
- $icon : string|null = null
-
The full CSS classes of the FontAwesome icon to render (see https://fontawesome.com/v6/search?m=free)
Return values
SectionMenuItemsubMenu()
public
static subMenu(TranslatableInterface|string $label[, string|null $icon = null ]) : SubMenuItem
Parameters
- $label : TranslatableInterface|string
- $icon : string|null = null
-
The full CSS classes of the FontAwesome icon to render (see https://fontawesome.com/v6/search?m=free)
Return values
SubMenuItem__construct()
private
__construct() : mixed