MainMenuItem
Class MainMenuItem
class Backend\Classes\MainMenuItem
Properties
public $badge : null | string
public $code : string
public $counter : mixed
public $counterLabel : null | string
public $icon : null | string
public $iconSvg : null | string
public $label : string
public
$order
:
int
= 500
public $owner : string
public
$permissions
:
array
= []
public
$sideMenu
:
\SideMenuItem[]
= []
public $url : string
Methods
public addPermission (string $permission, array $definition)
Parameters
Property | Type | Description |
---|---|---|
$permission | string |
string
|
$definition | array |
array
|
Returns
mixed
public addSideMenuItem (Backend\Classes\SideMenuItem $sideMenu)
Parameters
Property | Type | Description |
---|---|---|
$sideMenu | Backend\Classes\SideMenuItem |
Backend\Classes\SideMenuItem
|
Returns
mixed
public static createFromArray (array $data) : static
Parameters
Property | Type | Description |
---|---|---|
$data | array |
array
|
Returns
static
public getSideMenuItem (string $code) : SideMenuItem
Parameters
Property | Type | Description |
---|---|---|
$code | string |
string
|
Returns
SideMenuItem
public removeSideMenuItem (string $code)
Parameters
Property | Type | Description |
---|---|---|
$code | string |
string
|
Returns
mixed
Copyright © 2024 Winter CMS