final |
|---|
readonly |
Data Transfer Object representing a single actionable entry for the CmdK palette.
Instances of this class must contain UI-ready metadata so the frontend
can directly render and execute the action via its semantic open key.
intent is any {@see IntentInterface} — the client echoes it to dispatchIntent.
| Methods | ||
|---|---|---|
public
|
__construct(
string $id,
string $title,
IntentInterface $intent,
?string $icon = null,
?string $keywords = null,
?string $section = null,
)
|
# |
| Properties | |||
|---|---|---|---|
public
|
string
|
$id
|
# |
public
|
string
|
$title
|
# |
public
|
IntentInterface
|
$intent
|
# |
public
|
?string
|
$icon
|
# |
public
|
?string
|
$keywords
|
# |
public
|
?string
|
$section
|
# |