Figure out how to encapsulate writable settings supplied by DataDefinitionInterface

Created on 21 December 2014, about 10 years ago
Updated 20 October 2023, over 1 year ago

Assigning this to the field system component because that's where I came at it from. Please update as needed.

Problem/Motivation

I want to encapsulate the public properties of FieldConfigBase, as per #2030637: Expand FieldConfig/BaseFieldOverride/FieldConfigBase with methods β†’ . FieldConfigBase implements DataDefinitionInterface.

This is difficult because DataDefinitionInterface doesn't allow for $settings to be protected or private, since it only supports a getter and not a setter.

Proposed resolution

Add setSettings() and setSetting() to DataDefinitionInterface, or perhaps create another interface with a name less cumbersome than DataDefinitionWithWritableSettingsInterface.

Remaining tasks

Waiting for a namespace, see #17 πŸ› Figure out how to encapsulate writable settings supplied by DataDefinitionInterface Closed: outdated so that patch can be updated.

User interface changes

API changes

πŸ› Bug report
Status

Closed: outdated

Version

9.5

Component
FieldΒ  β†’

Last updated about 10 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States mile23 Seattle, WA

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.

Production build 0.71.5 2024