Commit b92c56b1 authored by alexpott's avatar alexpott

Issue #1964254 by vijaycs85, YesCT | Gábor Hojtsy: Fixed Configuration schemas...

Issue #1964254 by vijaycs85, YesCT | Gábor Hojtsy: Fixed Configuration schemas missing langcode and uuid at places.
parent 7724c193
......@@ -7,6 +7,9 @@ block.block.*.*:
id:
type: string
label: 'ID'
uuid:
type: string
label: 'UUID'
label:
type: label
label: 'Title'
......
......@@ -89,6 +89,10 @@ function testSchemaMapping() {
'label' => 'Message to display when in maintenance mode',
'type' => 'text',
);
$expected['mapping']['langcode'] = array(
'label' => 'Default language',
'type' => 'string',
);
$this->assertEqual($definition, $expected, 'Retrieved the right metadata for system.maintenance');
// More complex case, generic type. Metadata for image style.
......@@ -104,6 +108,8 @@ function testSchemaMapping() {
$expected['mapping']['effects']['sequence'][0]['mapping']['data']['type'] = 'image.effect.[%parent.name]';
$expected['mapping']['effects']['sequence'][0]['mapping']['weight']['type'] = 'integer';
$expected['mapping']['effects']['sequence'][0]['mapping']['ieid']['type'] = 'string';
$expected['mapping']['langcode']['label'] = 'Default language';
$expected['mapping']['langcode']['type'] = 'string';
$this->assertEqual($definition, $expected, 'Retrieved the right metadata for image.style.large');
......
......@@ -7,6 +7,9 @@ contact.category.*:
id:
type: string
label: 'Category identifier'
uuid:
type: string
label: 'UUID'
label:
type: label
label: 'Label'
......@@ -22,6 +25,12 @@ contact.category.*:
weight:
type: integer
label: 'Weight'
status:
type: boolean
label: 'Status'
langcode:
type: string
label: 'Default language'
contact.settings:
type: mapping
......
......@@ -34,6 +34,9 @@ image.style.*:
type: integer
ieid:
type: string
langcode:
type: string
label: 'Default language'
# Image effects plugins: image.effect.%
# These are used in image styles.
......
# Schema for the configuration files of the Shortcut module.
shortcut.set.default:
shortcut.set.*:
type: mapping
label: 'Shortcut settings'
mapping:
id:
type: string
label: 'ID'
uuid:
type: string
label: 'UUID'
label:
type: label
label: 'Label'
langcode:
type: string
label: 'Default language'
......@@ -32,6 +32,9 @@ system.site:
weight_select_max:
type: integer
label: 'Weight element maximum value'
langcode:
type: string
label: 'Default language'
system.maintenance:
type: mapping
......@@ -43,6 +46,9 @@ system.maintenance:
message:
type: text
label: 'Message to display when in maintenance mode'
langcode:
type: string
label: 'Default language'
system.authorize:
type: mapping
......@@ -90,7 +96,9 @@ system.date:
sequence:
- type: date_format
label: 'Date format'
langcode:
type: string
label: 'Default language'
system.fast_404:
type: mapping
......@@ -212,6 +220,9 @@ system.rss:
view_mode:
type: string
label: 'Feed content'
langcode:
type: string
label: 'Default language'
system.theme:
type: mapping
......@@ -261,3 +272,6 @@ menu.menu.*:
description:
type: label
label: 'Menu description'
langcode:
type: string
label: 'Default language'
enabled: '0'
message: @site is currently under maintenance. We should be back shortly. Thank you for your patience.
message: '@site is currently under maintenance. We should be back shortly. Thank you for your patience.'
langcode: en
......@@ -3,3 +3,4 @@ channel:
items:
limit: '10'
view_mode: rss
langcode: en
......@@ -7,3 +7,4 @@ page:
front: user
admin_compact_mode: '0'
weight_select_max: '100'
langcode: en
......@@ -56,6 +56,9 @@ user.settings:
password_strength:
type: boolean
label: 'Enable password strength indicator'
langcode:
type: string
label: 'Default language'
user.mail:
type: mapping
......@@ -88,6 +91,9 @@ user.mail:
status_canceled:
type: mail
label: 'Account cancelled'
langcode:
type: string
label: 'Default language'
user.flood:
type: mapping
......@@ -116,9 +122,15 @@ user.role.*:
id:
type: string
label: 'User role ID'
uuid:
type: string
label: 'UUID'
label:
type: label
label: 'User role label'
weight:
type: integer
label: 'User role weight'
langcode:
type: string
label: 'Default language'
......@@ -25,3 +25,4 @@ status_blocked:
status_canceled:
body: "[user:name],\n\nYour account on [site:name] has been canceled.\n\n-- [site:name] team"
subject: 'Account details for [user:name] at [site:name] (canceled)'
langcode: en
......@@ -15,3 +15,4 @@ signatures: '0'
cancel_method: user_cancel_block
password_reset_timeout: '86400'
password_strength: '1'
langcode: en
......@@ -47,6 +47,9 @@ views.view.*:
label: 'Position'
display_options:
type: 'views.display.[%parent.display_plugin]'
langcode:
type: string
label: 'Default language'
# Views display: common
# Options for Drupal\views\Plugin\views\display\DisplayPluginBase
......
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