Call to undefined method Drupal\Core\Field\Plugin\Field\FieldType\IntegerItem::getPossibleOptions()

Created on 27 March 2021, over 3 years ago
Updated 16 December 2024, 5 days ago

Problem/Motivation

On my website, when I go to the revisions for a node:
https://www.example.org/node/4953/revisions/view/41345/41346/split_fields

We get the following error, when the diff module is comparing fields of type "List (integer)".

Call to undefined method Drupal\Core\Field\Plugin\Field\FieldType\IntegerItem::getPossibleOptions()
docroot/modules/contrib/diff/src/Plugin/diff/Field/ListFieldBuilder.php
line 34

My fix for this was to check for the IntegerItem field type in the code.

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇩🇪Germany michaellenahan

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

Merge Requests

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