Discover image styles from all entity display modes

Created on 5 June 2024, 7 months ago
Updated 27 June 2024, 6 months ago

Problem/Motivation

Currently in code, only image styles from the 'default' view mode are discovered:

$plugin = $this->entityTypeManager
  ->getStorage('entity_view_display')
  ->load($entity->getEntityTypeId() . '.' . $entity->bundle() . '.default')
  ->getRenderer($this->fieldDefinition->getName());

Proposed resolution

Discover image styles across all available view modes.

Remaining tasks

I'll create a merge request, please review.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium RandalV

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024