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