Move to a template suggestion that isn't broken

See https://www.drupal.org/project/ds/issues/2887778
This commit is contained in:
benjamin melançon 2019-09-29 22:33:45 -04:00
parent 1262491e13
commit a9c6cd1cd2

View file

@ -0,0 +1,24 @@
{#
/**
* @file
* Display Suite 1 column template.
*
* Available variables:
* - ds_content_wrapper: wrapper around content
* - attributes: content region attributes
* - ds_content: content region
*/
#}
<{{ ds_content_wrapper }}{{ attributes.addClass('ds-1col', 'clearfix') }}>
{{ title_suffix.contextual_links }}
{% set image = ds_content.field_image|render %}
{% if image %}
{{ image }}
{% else %}
<figure class="background-replacement-for-no-image image"></figure>
{% endif %}
{{ ds_content|without('field_image') }}
</{{ ds_content_wrapper }}>