From 9f24ccbf087e6192fcb6f97def187c21ffaa73af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Tue, 20 Nov 2018 03:13:17 -0500 Subject: [PATCH] Simplify the test; we don't think twig produces notices --- agaric/templates/paragraph/paragraph.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agaric/templates/paragraph/paragraph.html.twig b/agaric/templates/paragraph/paragraph.html.twig index 7713e3f..56e3843 100644 --- a/agaric/templates/paragraph/paragraph.html.twig +++ b/agaric/templates/paragraph/paragraph.html.twig @@ -52,7 +52,7 @@ {% set section_classes = [ 'hero' ] %} {% set section_classes = section_classes|merge(styles) %} {% endif %} -{% if paragraph.field_style_escape_flow is not empty and paragraph.field_style_escape_flow.value == true %} +{% if paragraph.field_style_escape_flow.value == true %} {% set section_attributes = create_attribute().addClass(section_classes).setAttribute('data-headerbg', 'light') %}
{% endif %} @@ -69,6 +69,6 @@ {% endif %} {% endblock paragraph %} -{% if paragraph.field_style_escape_flow is not empty and paragraph.field_style_escape_flow.value == true %} +{% if paragraph.field_style_escape_flow.value == true %}
{% endif %}