From e736acf1ff16ddc9ec6df5c5aab45149c7526513 Mon Sep 17 00:00:00 2001 From: Adrian Dumitrache Date: Wed, 21 Aug 2024 12:24:08 +0300 Subject: [PATCH] [SonataExtraBundle] Add info notification --- .../Notifier/Notification/SonataNotification.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/sonata-extra-bundle/Notifier/Notification/SonataNotification.php b/packages/sonata-extra-bundle/Notifier/Notification/SonataNotification.php index ca337205..81721178 100644 --- a/packages/sonata-extra-bundle/Notifier/Notification/SonataNotification.php +++ b/packages/sonata-extra-bundle/Notifier/Notification/SonataNotification.php @@ -13,6 +13,11 @@ public static function success(string $message): self return (new self($message))->setSonataFlashType('success'); } + public static function info(string $message): self + { + return (new self($message))->setSonataFlashType('info'); + } + public static function error(string $message): self { return (new self($message))->setSonataFlashType('error');