Error: Call to undefined method Drupal\field_ui\Form\FieldConfigEditForm::getFormLangcode() in media_library_edit_field_widget_single_element_form_alter() (line 123 of modules/contrib/media_library_edit/media_library_edit.module)

Created on 28 August 2023, about 1 year ago

Problem/Motivation

Steps to reproduce

1. Create a media field and use Media library edit widget on "Manage form display"
2. Visit field settings route, eg. admin/structure/types/manage/news/fields/node.news.field_news_media_image
3. Face fatal error:

Error: Call to undefined method Drupal\field_ui\Form\FieldConfigEditForm::getFormLangcode() in media_library_edit_field_widget_single_element_form_alter() (line 123 of modules/contrib/media_library_edit/media_library_edit.module).

Proposed resolution

Check for the form instance.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: duplicate

Version

3.0

Component

Code

Created by

🇫🇮Finland sokru

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

Comments & Activities

Production build 0.71.5 2024