Media bundle class missing

Created on 8 November 2023, 8 months ago
Updated 9 November 2023, 8 months ago

Problem/Motivation

Since upgrading from Drupal 9 to 10.1.6 and blazy 2.22 the media bundle class is missing. Specifically this setting in the blazy.html.twig file: blazies.media.bundle

Steps to reproduce

- Add a paragraph field that contains an image field.
- Set the image formatter to blazy image and save.
- Add an image and inspect the blazies array. The bundle class is missing.

Proposed resolution

- Add back in the media bundle class.

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Fixed

Version

2.22

Component

Documentation

Created by

🇬🇧United Kingdom rviner

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @rviner
  • Status changed to Postponed: needs info 8 months ago
  • 🇮🇩Indonesia gausarts

    Thank you.

    > - Add a paragraph field that contains an image field.
    Is it Media entity reference, or plain old image?

  • Status changed to Active 8 months ago
  • 🇬🇧United Kingdom rviner

    It’s a plain image old image field.

    I upgraded from 2.5 so appreciate there have been a lot of changes since then. However the bundle class always appears to be null.

  • Status changed to Fixed 8 months ago
  • 🇮🇩Indonesia gausarts

    Yes, we had a dev storm in the last couple monts, mostly nit improvements.

    Bundles are not known to plain image fields.

    If it were there, then gone, it is likely corrected in the latest release.

    You may want to use Media instead which has bundles.

    Should you need more conditions, they are also available in blazies.[is|image|media], etc. array.

    Hope that would help :)

    Thank you.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024