Warning on rendering Media-Entity with field_css as thumbail

Created on 6 May 2021, over 3 years ago
Updated 29 December 2023, 9 months ago

Problem/Motivation

When using field_css on Media-Entity, we get a Warning when trying to render Media as thumbnail:
Warning: Undefined array key "field_css" in Drupal\field_css\Traits\CssTrait::itemPrefixes() (line 36 of modules/contrib/field_css/src/Traits/CssTrait.php).

Steps to reproduce

1. Add field_css to Media entity
2. Visit /admin/content/media-grid

Proposed resolution

Check if array_key in CssTrait.php

🐛 Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

🇩🇪Germany tomsaw Essen

Live updates comments and jobs are added and updated live.
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.71.5 2024