state.html.twig in Devel 8.3
{% block toolbar %}
{% set icon %}
<a href="{{ url("webprofiler.dashboard", {profile: token}, {fragment: 'state'}) }}" title="{{ 'State'|t }}">
<img width="20" height="28" alt="{{ 'State'|t }}"
src="data:image/png;base64,{{ collector.icon }}"/>
<span class="sf-toolbar-info-piece-additional sf-toolbar-status">{{ collector.getStateKeysCount }}</span>
</a>
{% endset %}
{% set text %}
<div class="sf-toolbar-info-piece">
<b>{{ 'State get'|t }}</b>
<span>{{ collector.getStateKeysCount }}</span>
</div>
{% endset %}
<div class="sf-toolbar-block">
<div class="sf-toolbar-icon">{{ icon|default('') }}</div>
<div class="sf-toolbar-info">{{ text|default('') }}</div>
</div>
{% endblock %}
{% block panel %}
<script id="state" type="text/template">
<h2 class="panel__title">{{ 'State'|t }}</h2>
<div class="panel__container">
<table>
<% _.each( data.state_get, function( item, key ){ %>
<tr>
<th><%- key %></th>
<td><%= Drupal.webprofiler.helpers.frm(item) %></td>
</tr>
<% }); %>
</table>
</div>
</script>
{% endblock %}
File
webprofiler/templates/Collector/state.html.twig
View source
- {% block toolbar %}
- {% set icon %}
- <a href="{{ url("webprofiler.dashboard", {profile: token}, {fragment: 'state'}) }}" title="{{ 'State'|t }}">
- <img width="20" height="28" alt="{{ 'State'|t }}"
- src="data:image/png;base64,{{ collector.icon }}"/>
- <span class="sf-toolbar-info-piece-additional sf-toolbar-status">{{ collector.getStateKeysCount }}</span>
- </a>
- {% endset %}
- {% set text %}
- <div class="sf-toolbar-info-piece">
- <b>{{ 'State get'|t }}</b>
- <span>{{ collector.getStateKeysCount }}</span>
- </div>
- {% endset %}
-
- <div class="sf-toolbar-block">
- <div class="sf-toolbar-icon">{{ icon|default('') }}</div>
- <div class="sf-toolbar-info">{{ text|default('') }}</div>
- </div>
- {% endblock %}
-
- {% block panel %}
- <script id="state" type="text/template">
- <h2 class="panel__title">{{ 'State'|t }}</h2>
- <div class="panel__container">
- <table>
- <% _.each( data.state_get, function( item, key ){ %>
- <tr>
- <th><%- key %></th>
- <td><%= Drupal.webprofiler.helpers.frm(item) %></td>
- </tr>
- <% }); %>
- </table>
- </div>
- </script>
- {% endblock %}