Wrong parameter in hook_entity_transform()

Created on 3 October 2025, 9 days ago

Problem/Motivation

I guess we have a wrong parameter type in:
function hook_entity_transform(array &$build, \Drupal\Core\Entity\EntityInterface $entity, \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display, $transform_mode) {
transform_api.api.php

Proposed resolution

I guess it should be EntityTransformDisplay $display instead.

collection_entity_transform(): Argument #3 ($display) must be of type Drupal\Core\Entity\Display\EntityViewDisplayInterface, Drupal\transform_api\Entity\EntityTransformDisplay given

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇩🇰Denmark nicklasmf

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.

No activities found.

Production build 0.71.5 2024