Skip to content

Should Fields using FieldTrait implement FieldTraitAwareInterface ? #7010

@ericabouaf

Description

@ericabouaf

Short description of what this feature will allow to do:

The FieldTraitAwareInterface was added to the repository to serve as the interface for fields that use FieldTrait. However, none of the fields that actually use FieldTrait implement this interface—they only implement FieldInterface. This makes FieldTraitAwareInterface effectively unused and defeats its intended purpose.

Example of how to use this feature

This change would enable us to create field factories that return FieldTraitAwareInterface instances, which could then be manipulated using the methods provided by FieldTrait. We have found this approach particularly valuable for defining fields outside of CRUD controllers, allowing them to be reused across different components.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions