{% if searchable is defined and not searchable %} {%- endif %} {# Wrapper attributes: add the user defined ID/classes and also add the template name (e.g. "content_element/text") as a class #} {% set attributes = attrs() .setIfExists('id', element_html_id) .addClass([element_css_classes, "content-#{type|replace({'_': '-'})}"]) .mergeWith(attributes|default) %} {% block wrapper %} {# Wrapper element around headline and content #}
{% endblock %} {% if searchable is defined and not searchable -%} {% endif %} {# Add metadata #} {% block metadata %}{% endblock %} {# Add styles and scripts #} {% block style %}{% endblock %} {% block script %}{% endblock %}