Change BlazyFileFormatterBase::getEntitiesToView based on core patch

Created on 1 December 2021, over 2 years ago
Updated 23 September 2023, 9 months ago

Problem/Motivation

Applying the Drupal Core patch in #3138528: getEntitiesToView() should implements the same interface as viewElements() → causes the site to throw PHP warnings:

Warning: Declaration of Drupal\blazy\Plugin\Field\FieldFormatter\BlazyFileFormatterBase::getEntitiesToView(Drupal\Core\Field\EntityReferenceFieldItemListInterface $items, $langcode) should be compatible with Drupal\Core\Field\Plugin\Field\FieldFormatter\EntityReferenceFormatterBase::getEntitiesToView(Drupal\Core\Field\FieldItemListInterface $items, $langcode)

Steps to reproduce

- Apply the above patch
- Visit a page where Blazy might be called.
- Observe the error

Proposed resolution

Patch Blazy accordingly.

Remaining tasks

This won't be mergable until the related task is.

📌 Task
Status

Postponed

Version

3.0

Component

Code

Created by

🇺🇸United States froboy Chicago, IL

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.69.0 2024