Add getTextFieldValues to buildFieldTrait to handle multi-valued text-based fields

Created on 30 November 2022, over 1 year ago

Problem/Motivation

We have `BuildFieldTrait::getTextFieldValue`, but then it's used on multivalued fields, it returns comma separated values, which is an issue if the text itself contains comma.

Proposed resolution

Add `BuildFieldTrait::getTextFieldValues` to return multiple values in an array. The pairing of `BuildFieldTrait::getTextFieldValue` & `BuildFieldTrait::getTextFieldValues` will be analogous to `BuildFieldTrait::getReferencedEntityFromField` and `BuildFieldTrait::getReferencedEntitiesFromField`

API changes

- No changes to existing methods.
- A new method `BuildFieldTrait::getTextFieldValues()` will now returns an array of values for multi-field text-based fields.

📌 Task
Status

Active

Version

1.1

Component

Code

Created by

🇮🇳India dipakmdhrm

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.69.0 2024