state.html.twig

{% block toolbar %}
    {% set icon %}
    
        {{ 'State'|t }}
        {{ collector.getStateKeysCount }}
    
    {% endset %}
    {% set text %}
    
{{ 'State get'|t }} {{ collector.getStateKeysCount }}
{% endset %}
{{ icon|default('') }}
{{ text|default('') }}
{% endblock %} {% block panel %}

{{ 'State'|t }}

<% _.each( data.state_get, function( item, key ){ %> <% }); %>
<%- key %> <%= Drupal.webprofiler.helpers.frm(item) %>
{% endblock %}

File

webprofiler/templates/Collector/state.html.twig

View source
  1. {% block toolbar %}
  2. {% set icon %}
  3. <a href="{{ url("webprofiler.dashboard", {profile: token}, {fragment: 'state'}) }}" title="{{ 'State'|t }}">
  4. <img width="20" height="28" alt="{{ 'State'|t }}"
  5. src="data:image/png;base64,{{ collector.icon }}"/>
  6. <span class="sf-toolbar-info-piece-additional sf-toolbar-status">{{ collector.getStateKeysCount }}</span>
  7. </a>
  8. {% endset %}
  9. {% set text %}
  10. <div class="sf-toolbar-info-piece">
  11. <b>{{ 'State get'|t }}</b>
  12. <span>{{ collector.getStateKeysCount }}</span>
  13. </div>
  14. {% endset %}
  15. <div class="sf-toolbar-block">
  16. <div class="sf-toolbar-icon">{{ icon|default('') }}</div>
  17. <div class="sf-toolbar-info">{{ text|default('') }}</div>
  18. </div>
  19. {% endblock %}
  20. {% block panel %}
  21. <script id="state" type="text/template">
  22. <h2 class="panel__title">{{ 'State'|t }}</h2>
  23. <div class="panel__container">
  24. <table>
  25. <% _.each( data.state_get, function( item, key ){ %>
  26. <tr>
  27. <th><%- key %></th>
  28. <td><%= Drupal.webprofiler.helpers.frm(item) %></td>
  29. </tr>
  30. <% }); %>
  31. </table>
  32. </div>
  33. </script>
  34. {% endblock %}