Error: Call to undefined method Drupal\Core\Field\BaseFieldDefinition::id() in limited_field_widgets_field_widget_third_party_settings_form()

Created on 25 November 2024, 27 days ago

Problem/Motivation

Error: Call to undefined method Drupal\Core\Field\BaseFieldDefinition::id() in limited_field_widgets_field_widget_third_party_settings_form() when you try to open Manage Form Display tab with fields that was created on a code level.
For example: a Commerce Order has Unlimited `Order Items` field. Field definition doesn't have `id()`.

Steps to reproduce

1) Install Drupal Commerce and Commerce Order
2) Create a new order type
3) Open Manage Form Display tab

Proposed resolution

Check that field_definition is instanceof FieldConfigInterface

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇧🇾Belarus pavel.bulat

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

Comments & Activities

Production build 0.71.5 2024