From 61e33f174b1c36e8e9bbc9443358b2c5dc9d613a Mon Sep 17 00:00:00 2001 From: Guillaume AGNIERAY Date: Wed, 6 Mar 2024 13:54:38 +0100 Subject: [PATCH] Add link to form in dashboard; fixes #1781 --- lib/GalettePaypal/PluginGalettePaypal.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/GalettePaypal/PluginGalettePaypal.php b/lib/GalettePaypal/PluginGalettePaypal.php index 031be67..1b28b4f 100644 --- a/lib/GalettePaypal/PluginGalettePaypal.php +++ b/lib/GalettePaypal/PluginGalettePaypal.php @@ -93,7 +93,15 @@ public static function getPublicMenusItemsList(): array */ public static function getDashboardsContents(): array { - return []; + return [ + [ + 'label' => _T("Payment form", "paypal"), + 'route' => [ + 'name' => 'paypal_form' + ], + 'icon' => 'credit_card' + ] + ]; } /**