File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -669,15 +669,14 @@ Customize Browser Notifications (Flash Messages)
669669
670670 Support for customizing importance levels was introduced in Symfony 6.1.
671671
672- The default behavior for Browser channel notifications is to add a flash
673- message with a key of "notification" .
672+ The default behavior for browser channel notifications is to add a
673+ :ref: ` flash message < flash-messages >` with `` notification `` as its key .
674674
675- However, it may be desirable to map the importance level of the notification
676- to the type of flash message, so that you can style the different flash
677- messages according to their importance.
675+ However, you might prefer to map the importance level of the notification to the
676+ type of flash message, so you can tweak their style.
678677
679- This can be done by overriding the default
680- `` notifier.flash_message_importance_mapper `` service with your own implementation of
678+ you can do that by overriding the default `` notifier.flash_message_importance_mapper ``
679+ service with your own implementation of
681680:class: `Symfony\\ Component\\ Notifier\\ FlashMessage\\ FlashMessageImportanceMapperInterface `
682681where you can provide your own "importance" to "alert level" mapping.
683682
You can’t perform that action at this time.
0 commit comments