Use on all fieldable content entity types

Created on 15 February 2023, almost 2 years ago

Problem/Motivation

The provided field is available to add to content entity types other than node and taxonomy_term, however, it does not work on those content entity types. For example, Media entities.

Steps to reproduce

Install this module and Media module.
Edit a Media type and add the Allow Only One field, configured as desired.
Create a media entity of that type and save it.
Create a second media entity of that type, with the same data in the restricted fields, and save it.
Observe that both media entities have been created, without validation error.

Proposed resolution

Patch the constraint validator to work with all fieldable content entity types.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States lisagodare@gmail.com

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

Comments & Activities

Production build 0.71.5 2024