rules-debug-log-element.html.twig

{#
/**
 * @file
 * Default theme implementation for a Rules debug output log entry.
 *
 * This outputs the container for Rules log debug output.
 * Individual log entries are output in rules-debug-log-element.html.twig.
 *
 * Available variables:
 * - text: The text of the debug log message, with placeholders replaced.
 * - level: Drupal text log level of this entry.
 * - time: The time of this entry, in milliseconds, relative to the start of
 *   the Rule execution.
 * - link: A link tag pointing to the edit page for the expression that
 *   generated this log entry.
 *
 * @see template_preprocess_rules_debug_log_element()
 *
 * @ingroup themeable
#}
{% set classes = ['rules-debug-log'] %}
<span class="rules-debug-{{ level }}">{%if time %}{{ time }} {% endif %}{{ text }}{% if link %}&nbsp;[{{ link }}]{% endif %}</span>
1 theme call to rules-debug-log-element.html.twig
RulesDebugLog::renderHelper in src/Logger/RulesDebugLog.php
Renders the log of one event invocation.

File

templates/rules-debug-log-element.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a Rules debug output log entry.
  5. *
  6. * This outputs the container for Rules log debug output.
  7. * Individual log entries are output in rules-debug-log-element.html.twig.
  8. *
  9. * Available variables:
  10. * - text: The text of the debug log message, with placeholders replaced.
  11. * - level: Drupal text log level of this entry.
  12. * - time: The time of this entry, in milliseconds, relative to the start of
  13. * the Rule execution.
  14. * - link: A link tag pointing to the edit page for the expression that
  15. * generated this log entry.
  16. *
  17. * @see template_preprocess_rules_debug_log_element()
  18. *
  19. * @ingroup themeable
  20. #}
  21. {% set classes = ['rules-debug-log'] %}
  22. <span class="rules-debug-{{ level }}">{%if time %}{{ time }} {% endif %}{{ text }}{% if link %}&nbsp;[{{ link }}]{% endif %}</span>