Skip to content

Commit 02fe831

Browse files
[VarDumper][HttpKernel] Fix dumping with labels
1 parent 8a58186 commit 02fe831

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Resources/views/Profiler/dump.html.twig

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
{% for dump in collector.getDumps('html') %}
1212
<div class="sf-toolbar-info-piece">
1313
<span>
14+
{% if dump.label is defined and '' != dump.label %}
15+
<span class="sf-toolbar-file-line"><strong>{{ dump.label }}</strong> in </span>
16+
{% endif %}
1417
{% if dump.file %}
1518
{% set link = dump.file|file_link(dump.line) %}
1619
{% if link %}
@@ -45,7 +48,12 @@
4548

4649
{% for dump in collector.getDumps('html') %}
4750
<div class="sf-dump sf-reset">
48-
<span class="metadata">In
51+
<span class="metadata">
52+
{% if dump.label is defined and '' != dump.label %}
53+
<strong>{{ dump.label }}</strong> in
54+
{% else %}
55+
In
56+
{% endif %}
4957
{% if dump.line %}
5058
{% set link = dump.file|file_link(dump.line) %}
5159
{% if link %}

0 commit comments

Comments
 (0)