{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} {% set events = collector.events %} {% if events.messages|length %} {% set icon %} {{ source('@WebProfiler/Icon/notifier.svg') }} {{ events.messages|length }} {% endset %} {% set text %}
Sent notifications {{ events.messages|length }}
{% for transport in events.transports %}
{{ transport ?: 'Empty Transport Name' }} {{ 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 %} {{ source('@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 ?: 'Empty Transport Name' }}

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

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

Subject

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

{% set notification = message.notification ?? null %} {% if notification %}
Content
{{ notification.getContent() ?? '(empty)' }}
Importance
{{ notification.getImportance() }}
{% endif %}
{% if notification %}

Notification

                                                            {{- '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 %}