QuickActionItem
Class QuickActionItem
class Backend\Classes\QuickActionItem
Properties
public
$attributes
:
array
= []
public $code : string
public $icon : null | string
public $iconSvg : null | string
public $label : string
public
$order
:
int
= -1
public $owner : string
public
$permissions
:
array
= []
public $url : string
Methods
public addAttribute (null | string | int $attribute, null | string | array $value)
Parameters
Property | Type | Description |
---|---|---|
$attribute | null | string | int |
null | string | int
|
$value | null | string | array |
null | string | array
|
Returns
mixed
public addPermission (string $permission, array $definition)
Parameters
Property | Type | Description |
---|---|---|
$permission | string |
string
|
$definition | array |
array
|
Returns
mixed
public static createFromArray (array $data) : static
Parameters
Property | Type | Description |
---|---|---|
$data | array |
array
|
Returns
static
public removeAttribute ($attribute)
Parameters
Property | Type | Description |
---|---|---|
$attribute | mixed |
mixed
|
Returns
mixed
public removePermission (string $permission) : void
Parameters
Property | Type | Description |
---|---|---|
$permission | string |
string
|
Returns
void
Copyright © 2024 Winter CMS