$menu->item()
Returns a menu item object for the given props
$menu->item() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.
$menu->item(string $id, array $props = []): Button|null
Parameters
| Name | Type | Default |
|---|---|---|
| $idrequired | string |
no default value |
| $props | array |
[]
|
Return types
Kirby\Panel\Ui\Buttonornull