entity_browser_entity_form_field_widget_third_party_settings_form hooks can no longer return NULL

Created on 20 March 2025, 16 days ago

Problem/Motivation

Follow-up of πŸ› Support multiple implementations for hook_field_widget_third_party_settings_form Active .

There is now a fatal error if a field_widget_third_party_settings_form hook doesn't return an array, such as entity_browser_entity_form_field_widget_third_party_settings_form(), which conditionally adds something only for a certain plugin.

Yes, it's documented as returning an array, but typically hooks don't require you to return something and it wasn't necessary until now. Breaks a fairly high profile contrib module, so creating a core issue instead of just fixing that. There are likely others.

Other exampes: sitestudio_default_helper, ai_translate_textfield, 5 pages of results, most do return an array.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component

field system

Created by

πŸ‡¨πŸ‡­Switzerland berdir Switzerland

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