I know it’s possible to add custom menu items to the panel, like in the example below (source).
But can the same be accomplished from inside a plugin?
return [
'panel' => [
'menu' => [
'site' => [
'label' => 'Overview'
],
'-',
'form-submissions' => [
'icon' => 'archive',
'label' => 'Form Submissions',
'link' => 'pages/form-submissions',
'current' => function (string $current): bool {
$path = Kirby\Cms\App::instance()->request()->path()->toString();
return Str::contains($path, 'pages/form-submissions');
}
],
'users'
]
]
];