Commit 92f74b28 authored by alexpott's avatar alexpott

Issue #2038285 by vijaycs85, Gábor Hojtsy: Update configuration schema for...

Issue #2038285 by vijaycs85, Gábor Hojtsy: Update configuration schema for date formats as entities.
parent 982488c3
......@@ -78,25 +78,3 @@ filter:
status:
type: boolean
label: 'Enabled'
# Date format with name and pattern.
date_format:
type: mapping
label: 'Date Format'
mapping:
name:
type: label
label: 'Name'
pattern:
type: mapping
label: 'Format string'
mapping:
php:
type: label
label: 'PHP date format'
intl:
type: label
label: 'International'
locked:
type: boolean
label: 'Locked'
......@@ -90,12 +90,45 @@ system.date:
default:
type: string
label: 'Default country'
formats:
langcode:
type: string
label: 'Default language'
system.date_format.*:
type: mapping
label: 'Date format'
mapping:
id:
type: string
label: 'Date format identifier'
uuid:
type: string
label: 'UUID'
label:
type: label
label: 'Date format label'
status:
type: boolean
label: 'Enabled'
locked:
type: boolean
label: 'Locked'
locales:
type: sequence
label: 'Date formats'
label: 'Languages'
sequence:
- type: date_format
label: 'Date format'
- type: string
label: 'Language'
pattern:
type: mapping
label: 'Format string'
mapping:
php:
type: string
label: 'PHP date format'
intl:
type: string
label: 'Intl date format'
langcode:
type: string
label: 'Default language'
......
......@@ -171,7 +171,7 @@ public function form(array $form, array &$form_state) {
if (!empty($options)) {
$form['locales'] = array(
'#title' => t('Select localizations'),
'#title' => t('Languages'),
'#type' => 'select',
'#options' => $options,
'#multiple' => TRUE,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment