There is no way to validate a property containing a country code

Created on 24 February 2015, over 10 years ago
Updated 5 May 2025, 5 months ago

Drupal provides the country list via the CountryManager. Entity properties sometimes have a need to store the country.
There is no constraint/validator that would validate the country against Drupal's country list.
Symfony Form has one, but it only works for symfony/intl, which we aren't using.

So, let's add our own constraint for this.

Beta phase evaluation

This is a non-prioritized normal task. It introduces no disruption, only adds a missing validator.

πŸ“Œ Task
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

base system

Created by

πŸ‡·πŸ‡ΈSerbia bojanz

Live updates comments and jobs are added and updated live.
  • stale-issue-cleanup

    To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues

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