{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} {% set events = collector.events %} {% if events.messages|length %} {% set icon %} {% include('@WebProfiler/Icon/notifier.svg') %} {{ events.messages|length }} {% endset %} {% set text %}
Sent notifications {{ events.messages|length }}
{% for transport in events.transports %}
{{ transport }} {{ events.messages(transport)|length }}
{% endfor %} {% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { 'link': profiler_url }) }} {% endif %} {% endblock %} {% block head %} {{ parent() }} {% endblock %} {% block menu %} {% set events = collector.events %} {{ include('@WebProfiler/Icon/notifier.svg') }} Notifications {% if events.messages|length > 0 %} {{ events.messages|length }} {% endif %} {% endblock %} {% block panel %} {% set events = collector.events %}

Notifications

{% if not events.messages|length %}

No notifications were sent.

{% endif %}
{% for transport in events.transports %}
{{ events.messages(transport)|length }} {{ transport }}
{% endfor %}
{% for transport in events.transports %}

{{ transport }}

{% for event in events.events(transport) %} {% set message = event.message %}

Message #{{ loop.index }} ({{ event.isQueued() ? 'queued' : 'sent' }})

Subject

{{ message.getSubject() ?? '(empty)' }}

{% if message.getNotification is defined %}
Content
{{ message.getNotification().getContent() ?? '(empty)' }}
Importance
{{ message.getNotification().getImportance() }}
{% endif %}
{% if message.getNotification is defined %}

Notification

{% set notification = event.message.getNotification() %}
                                                            {{- 'Subject: ' ~ notification.getSubject() }}
{{- 'Content: ' ~ notification.getContent() }}
{{- 'Importance: ' ~ notification.getImportance() }}
{{- 'Emoji: ' ~ (notification.getEmoji() is empty ? '(empty)' : notification.getEmoji()) }}
{{- 'Exception: ' ~ notification.getException() ?? '(empty)' }}
{{- 'ExceptionAsString: ' ~ (notification.getExceptionAsString() is empty ? '(empty)' : notification.getExceptionAsString()) }}
{% endif %}

Message Options

                                                            {%- if message.getOptions() is null %}
                                                                {{- '(empty)' }}
                                                            {%- else %}
                                                                {{- message.getOptions()|json_encode(constant('JSON_PRETTY_PRINT')) }}
                                                            {%- endif %}
                                                        
{% endfor %}
{% endfor %} {% endblock %}