By phenaproxima on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.3.x
Introduced in version:
10.3.0
Issue links:
Description:
There is a new validation constraint available: CountryCode. This is a very simple constraint that requires the validated value to be one of the known country codes returned by the country_manager service.
To use it in config schema (this example is paraphrased from system.schema.yml, for the system.date config object):
default_country:
type: string
label: 'Default country'
constraints:
CountryCode: []
Impacts:
Module developers