Initial Drupal 11 with DDEV setup

This commit is contained in:
gluebox
2025-10-08 11:39:17 -04:00
commit 89ef74b305
25344 changed files with 2599172 additions and 0 deletions

View File

@ -0,0 +1,19 @@
{#
/**
* @file
* Default theme implementation to display a formatted responsive image field.
*
* Available variables:
* - responsive_image: A collection of responsive image data.
* - url: An optional URL the image can be linked to.
*
* @see template_preprocess_responsive_image_formatter()
*
* @ingroup themeable
*/
#}
{% if url %}
<a href="{{ url }}">{{ responsive_image }}</a>
{% else %}
{{ responsive_image }}
{% endif %}

View File

@ -0,0 +1,29 @@
{#
/**
* @file
* Default theme implementation of a responsive image.
*
* Available variables:
* - sources: The attributes of the <source> tags for this <picture> tag.
* - img_element: The controlling image, with the fallback image in srcset.
* - output_image_tag: Whether or not to output an <img> tag instead of a
* <picture> tag.
*
* @see template_preprocess_responsive_image()
*
* @ingroup themeable
*/
#}
{% if output_image_tag %}
{{ img_element }}
{% else %}
<picture>
{% if sources %}
{% for source_attributes in sources %}
<source{{ source_attributes }}/>
{% endfor %}
{% endif %}
{# The controlling image, with the fallback image in srcset. #}
{{ img_element }}
</picture>
{% endif %}