Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5b350cd

Browse files
committed
Minor reword
1 parent 9e5ec28 commit 5b350cd

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

notifier.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff 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`
682681
where you can provide your own "importance" to "alert level" mapping.
683682

0 commit comments

Comments
 (0)