Add alt and title fields to Image type

Created on 8 December 2022, over 1 year ago
Updated 19 April 2023, about 1 year ago

Problem/Motivation

Currently it's not possible to get an image field's alt or title attributes

Steps to reproduce

  • Create an entity type with an image field
  • Create an entity of that type, and fill in the alt and/or title fields
  • Visit the graphql explorer and attempt to access the alt and/or title fields. They aren't currently available.

Also visit the Fragments page and see that these fields do not exist on the Image fragment.

Proposed resolution

Add alt and title fields to the Image type, and provide it as data from the FieldImage data producer

Remaining tasks

Make these fields available

User interface changes

None

API changes

None

Data model changes

alt and title will be added as optional fields for Image type

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jlandfried

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024