Quellcode durchsuchen

image field caption

bach vor 8 Monaten
Ursprung
Commit
c9295477fd

+ 1 - 1
composer.json

@@ -29,7 +29,7 @@
         "drupal/geofield": "^1.36",
         "drupal/honeypot": "^2.1",
         "drupal/image_delta_formatter": "^1.1",
-        "drupal/image_field_caption": "^1.1",
+        "drupal/image_field_caption": "^2.0",
         "drupal/leaflet": "^10.2",
         "drupal/leaflet_more_maps": "^2.1",
         "drupal/leaflet_more_markers": "^1.1",

+ 13 - 9
composer.lock

@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "d7e66c13bb2cc1a87dcc389c5ddc751c",
+    "content-hash": "8caf5041bf39fd16d88787901df64c6c",
     "packages": [
         {
             "name": "alchemy/zippy",
@@ -5898,26 +5898,26 @@
         },
         {
             "name": "drupal/image_field_caption",
-            "version": "1.2.0",
+            "version": "2.0.1",
             "source": {
                 "type": "git",
                 "url": "https://git.drupalcode.org/project/image_field_caption.git",
-                "reference": "8.x-1.2"
+                "reference": "2.0.1"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://ftp.drupal.org/files/projects/image_field_caption-8.x-1.2.zip",
-                "reference": "8.x-1.2",
-                "shasum": "ea4705e97d8b13257507f2013e16a7ba244a4298"
+                "url": "https://ftp.drupal.org/files/projects/image_field_caption-2.0.1.zip",
+                "reference": "2.0.1",
+                "shasum": "053e1ccfc638b3b2cd5c59c3c6a053e4e5041183"
             },
             "require": {
-                "drupal/core": "^8 || ^9"
+                "drupal/core": "^9 || ^10"
             },
             "type": "drupal-module",
             "extra": {
                 "drupal": {
-                    "version": "8.x-1.2",
-                    "datestamp": "1651684811",
+                    "version": "2.0.1",
+                    "datestamp": "1705443097",
                     "security-coverage": {
                         "status": "covered",
                         "message": "Covered by Drupal's security advisory policy"
@@ -5945,6 +5945,10 @@
                     "name": "iStryker",
                     "homepage": "https://www.drupal.org/user/303676"
                 },
+                {
+                    "name": "RobLoach",
+                    "homepage": "https://www.drupal.org/user/61114"
+                },
                 {
                     "name": "tyler.frankenstein",
                     "homepage": "https://www.drupal.org/user/150680"

+ 2 - 2
config/sync/core.entity_view_display.node.projet.default.yml

@@ -26,7 +26,7 @@ dependencies:
     - entity_reference_revisions
     - file
     - geofield
-    - image
+    - image_field_caption
     - link
     - manage_display
     - options
@@ -128,7 +128,7 @@ content:
     weight: 106
     region: content
   field_photo:
-    type: image
+    type: image_caption
     label: above
     settings:
       image_link: ''

+ 1 - 1
config/sync/field.field.node.projet.field_photo.yml

@@ -43,6 +43,6 @@ settings:
     width: null
     height: null
     caption: ''
-  caption_field: 0
+  caption_field: 1
   caption_field_required: 0
 field_type: image

+ 4 - 2
config/sync/page_manager.page_variant.node_view-panels_variant-5.yml

@@ -62,12 +62,14 @@ variant_settings:
       context_mapping:
         entity: node
       formatter:
-        type: image
+        type: image_caption
         weight: 0
         label: hidden
         settings:
-          image_link: ''
           image_style: wide
+          image_link: ''
+          image_loading:
+            attribute: lazy
         third_party_settings: {  }
       region: top
       weight: -5