{% set classes = [ 'paragraph', 'paragraph--type--' ~ paragraph.bundle|clean_class, view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class, not paragraph.isPublished() ? 'paragraph--unpublished' ] %} {% block paragraph %} {{ content.controls }}
{% if paragraph.field_section_background_type.0.value == 'color' %}
{% elseif paragraph.field_section_background_type.0.value == 'image' %}
{% elseif paragraph.field_section_background_type.0.value == 'pattern' %}
{% else %}
{% endif %}
{% if paragraph.field_section_title is not empty %}

{{ paragraph.field_section_title.0.value }} {% if paragraph.field_section_subtitle is not empty %} {{ paragraph.field_section_subtitle.0.value }} {% endif %}

{% endif %} {% block content %} {{ content }} {% endblock %}
{% if paragraph.field_section_background_img_cap is not empty %}

{{ paragraph.field_section_background_img_cap.0.value }}

{% endif %}
{% endblock paragraph %}