Call to undefined method Drupal\views\Form\ViewsForm::getEntity()

Created on 12 September 2024, 2 months ago
Updated 17 September 2024, 2 months ago

Problem/Motivation

it looks like there is a bug in version 8.x-1.8 (works fine in 1.7), probably caused by https://www.drupal.org/project/field_formatter_class/issues/3436816 โœจ Add support for the form display Fixed

The problem is causing that views with Form field fields are not workign anymore and return following error:
Error: Call to undefined method Drupal\views\Form\ViewsForm::getEntity() in field_formatter_class_field_widget_complete_form_alter() (line 142 of /var/www/html/web/modules/contrib/field_formatter_class/field_formatter_class.module).

Steps to reproduce

  1. Install and enable Field Fromatter Class module
  2. Install and enable Views Entity Form Field module
  3. Create new view (for Content, for example) and add any "Form field" field
  4. Generate preview

View is not returning the content, but throws error in dblog, as described above.
It works perfectly fine when downgrading Field Formatter Class back to 1.7

Tested on:
Drupal 10.3.5
PHP 8.3.10
Field Formatter Class 8.x-1.8
Views Entity Form Field 8.x-1.0-beta10

๐Ÿ› Bug report
Status

Active

Version

1.8

Component

Code

Created by

๐Ÿ‡ต๐Ÿ‡ฑPoland besek

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024