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

public $owner : string

public $permissions : array

public $sideMenu : \SideMenuItem[]

public $url : string

Methods

public addPermission (string $permission, array $definition)

Parameters
Property Description
$permission
string
$definition
array
Returns
mixed

public addSideMenuItem (Backend\Classes\SideMenuItem $sideMenu)

Parameters
Property Description
$sideMenu
Backend\Classes\SideMenuItem
Returns
mixed

public static createFromArray (array $data) : static

Parameters
Property Description
$data
array
Returns
static

public getSideMenuItem (string $code) : SideMenuItem

Parameters
Property Description
$code
string
Returns
SideMenuItem

public removeSideMenuItem (string $code)

Parameters
Property Description
$code
string
Returns
mixed
Copyright © 2024 Winter CMS