Fix error in Widget annotation

Created on 23 November 2023, about 1 year ago
Updated 24 January 2024, 12 months ago

Problem/Motivation

The widget annonation is wrong. this gives a bad DX.

In below example, the value is "FALSE", but a boolean is expexted, so the core code regards this as TRUE.

/**
 * @FieldWidget(
 *   id = "...",
 *   label = @Translation("..."),
 *   field_types = {
 *     "office_hours",
 *   },
 *   multiple_values = "FALSE",
 * )
 */

The correct value must be :

/**
 * @FieldWidget(
 *   multiple_values = TRUE,
 * )
 */
🐛 Bug report
Status

Fixed

Version

1.12

Component

Code - widget

Created by

🇳🇱Netherlands johnv

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

Comments & Activities

Production build 0.71.5 2024