Commit e23ff33a authored by Thomas Frobieter's avatar Thomas Frobieter
Browse files

Issue #3309184 by thomas.frobieter, Anybody: TypeError: strtr(): Argument #1...

Issue #3309184 by thomas.frobieter, Anybody: TypeError: strtr(): Argument #1 ($string) must be of type string, array given in strtr() (Zeile 570 in /vendor/twig/twig/src/Extension/CoreExtension.php) 
parent 57e535c1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -13,14 +13,14 @@
      {% set image_zoomable = paragraph.field_paragraphs_image_zoomable.value %}
      {% set image_link = paragraph.field_paragraphs_link.value %}
      {% set image_rendered = drupal_image(raw_image_path, responsive_image_size, {alt: raw_image_alt}, responsive=true) %}
      {% set has_image_shape = paragraph.field_image_clip_path.value and paragraph.field_image_clip_path.value|trim %}
      {% set has_image_shape = paragraph.field_image_clip_path.value and paragraph.field_image_clip_path.value.toString()|trim %}

      {% if image_field_item %}
        {% if has_image_shape %}
          <style>
            .css-shape-{{ paragraph.id() }}{
              {{ paragraph.field_image_clip_path.value }}
              {{ paragraph.field_image_clip_path.value|replace({"clip-path": "shape-outside"}) }}
              {{ paragraph.field_image_clip_path.value.toString()|replace({"clip-path": "shape-outside"}) }}
            }
          </style>
        {% endif %}