Flexible image include throws "Warning: assert(): $attributes, if set, must be an array or object of type" if no link attributes present

Created on 3 July 2023, over 1 year ago

Problem/Motivation

Warning: assert(): $attributes, if set, must be an array or object of type \Drupal\Core\Template\Attribute failed in Drupal\Core\Template\TwigExtension->getLink() (Zeile 248 in /XXX/web/core/lib/Drupal/Core/Template/TwigExtension.php)

Steps to reproduce

Proposed resolution

Add empty check and provide fallback attributes.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024