diff --git a/core/lib/Drupal/Core/Config/Config.php b/core/lib/Drupal/Core/Config/Config.php index eed4f89..77ce647 100644 --- a/core/lib/Drupal/Core/Config/Config.php +++ b/core/lib/Drupal/Core/Config/Config.php @@ -616,9 +616,12 @@ protected function castValue($key, $value) { } } else { - // Any non-scalar value must be an array. + // Throw exception on any non-scalar or non-array value. if (!is_array($value)) { - $value = (array) $value; + throw new UnsupportedConfigDataTypeException(format_string('Invalid data type for config element @name:@key', array( + '@name' => $this->getName(), + '@key' => $key, + ))); } // Recurse into any nested keys. foreach ($value as $nested_value_key => $nested_value) { diff --git a/core/lib/Drupal/Core/Config/UnsupportedConfigDataTypeException.php b/core/lib/Drupal/Core/Config/UnsupportedConfigDataTypeException.php new file mode 100644 index 0000000..ac63c26 --- /dev/null +++ b/core/lib/Drupal/Core/Config/UnsupportedConfigDataTypeException.php @@ -0,0 +1,14 @@ +set('stream', fopen(__FILE__, 'r'))->save(); $this->fail('No Exception thrown upon saving invalid data type.'); } - catch (\Exception $e) { + catch (UnsupportedConfigDataTypeException $e) { $this->pass(format_string('%class thrown upon saving invalid data type.', array( '%class' => get_class($e), ))); diff --git a/core/modules/config/lib/Drupal/config/Tests/ConfigSchemaTest.php b/core/modules/config/lib/Drupal/config/Tests/ConfigSchemaTest.php index 5d8f259..62341ee 100644 --- a/core/modules/config/lib/Drupal/config/Tests/ConfigSchemaTest.php +++ b/core/modules/config/lib/Drupal/config/Tests/ConfigSchemaTest.php @@ -144,10 +144,10 @@ function testSchemaMapping() { $expected = array(); $expected['label'] = 'Schema multiple filesytem marker test'; $expected['class'] = '\Drupal\Core\Config\Schema\Mapping'; - $expected['mapping']['id']['type'] = 'string'; - $expected['mapping']['id']['label'] = 'ID'; - $expected['mapping']['description']['type'] = 'text'; - $expected['mapping']['description']['label'] = 'Description'; + $expected['mapping']['testid']['type'] = 'string'; + $expected['mapping']['testid']['label'] = 'ID'; + $expected['mapping']['testdescription']['type'] = 'text'; + $expected['mapping']['testdescription']['label'] = 'Description'; $this->assertEqual($definition, $expected, 'Retrieved the right metadata for config_test.someschema.somemodule.section_one.subsection'); diff --git a/core/modules/config/lib/Drupal/config/Tests/DefaultConfigTest.php b/core/modules/config/lib/Drupal/config/Tests/DefaultConfigTest.php new file mode 100644 index 0000000..9fa2493 --- /dev/null +++ b/core/modules/config/lib/Drupal/config/Tests/DefaultConfigTest.php @@ -0,0 +1,179 @@ + 'Default configuration', + 'description' => 'Tests that default configuration provided by all modules matches schema.', + 'group' => 'Configuration', + ); + } + + /** + * Tests default configuration data type. + */ + public function testDefaultConfig() { + // Create a typed config manager with access to configuration schema in + // every module, profile and theme. + $typed_config = new TypedConfigManager( + \Drupal::service('config.storage'), + new TestSchemaStorage(), + \Drupal::service('cache.config') + ); + + // Create a configuration storage with access to default configuration in + // every module, profile and theme. + $default_config_storage = new TestInstallStorage(); + + foreach ($default_config_storage->listAll() as $config_name) { + // @todo: remove once migration and + // translation (https://drupal.org/node/2168609) schemas are in. + if (strpos($config_name, 'migrate.migration') === 0 || strpos($config_name, 'language.config') === 0) { + continue; + } + // 1. config_test.noschema has to be skipped as it tests + // TypedConfigManagerInterface::hasConfigSchema() method. + // 2. config.someschema has to be skipped as it tests + // schema default data type fallback. + if ($config_name == 'config_test.noschema' || $config_name == 'config_test.someschema') { + continue; + } + + $this->configName = $config_name; + $data = $default_config_storage->read($config_name); + if (!$typed_config->hasConfigSchema($config_name)) { + $this->fail(String::format('No schema for !config_name', array('!config_name' => $config_name))); + continue; + } + $definition = $typed_config->getDefinition($config_name); + $this->schema = $typed_config->create($definition, $data); + $this->configPass = TRUE; + foreach ($data as $key => $value) { + $this->checkValue($key, $value); + } + if ($this->configPass) { + $this->pass(String::format('Schema found for !config_name and values comply with schema.', array('!config_name' => $config_name))); + } + } + } + + /** + * Helper method to check data type. + * + * @param $key + * @param $value + * + * @return array + */ + protected function checkValue($key, $value) { + if (is_scalar($value) || $value === NULL) { + try { + $success = FALSE; + $type = gettype($value); + $element = $this->schema->get($key); + if ($element instanceof PrimitiveInterface) { + if ($type == 'integer' && $element instanceof IntegerInterface) { + $success = TRUE; + } + if ($type == 'double' && $element instanceof FloatInterface) { + $success = TRUE; + } + if ($type == 'boolean' && $element instanceof BooleanInterface) { + $success = TRUE; + } + if ($type == 'string' && ($element instanceof StringInterface || $element instanceof Property)) { + $success = TRUE; + } + // Null values are allowed for all types. + if ($value === NULL) { + $success = TRUE; + } + } + else { + // @todo throw an exception due to an incomplete schema. Only possible + // once https://drupal.org/node/1910624 is complete. + } + $class = get_class($element); + if (!$success) { + $this->fail("{$this->configName}:$key has the wrong schema. Variable type is $type and schema class is $class."); + } + } + catch (SchemaIncompleteException $e) { + $this->fail("{$this->configName}:$key has no schema."); + } + } + else { + // Any non-scalar value must be an array. + if (!is_array($value)) { + $value = (array) $value; + } + // Recurse into any nested keys. + foreach ($value as $nested_value_key => $nested_value) { + $value[$nested_value_key] = $this->checkValue($key . '.' . $nested_value_key, $nested_value); + } + } + return $value; + } + + /** + * {@inheritdoc} + */ + protected function fail($message = NULL, $group = 'Other') { + $this->configPass = FALSE; + return parent::fail($message, $group); + } + +} diff --git a/core/modules/config/tests/config_integration_test/config/schema/config_integration_test.schema.yml b/core/modules/config/tests/config_integration_test/config/schema/config_integration_test.schema.yml new file mode 100644 index 0000000..5010f01 --- /dev/null +++ b/core/modules/config/tests/config_integration_test/config/schema/config_integration_test.schema.yml @@ -0,0 +1,9 @@ +# Schema for the configuration files of the Configuration Integration Test module. + +config_integration_test.settings: + type: mapping + label: 'Configuration integration test settings' + mapping: + foo: + type: string + label: 'Foo' diff --git a/core/modules/config/tests/config_other_module_config/config/config_test.dynamic.other_module.yml b/core/modules/config/tests/config_other_module_config/config/config_test.dynamic.other_module.yml index b144af6..7bd70d2 100644 --- a/core/modules/config/tests/config_other_module_config/config/config_test.dynamic.other_module.yml +++ b/core/modules/config/tests/config_other_module_config/config/config_test.dynamic.other_module.yml @@ -1,8 +1,8 @@ id: other_module uuid: 486f9f5c-82ed-4add-a700-b0ee3af4d17d label: 'Other module' -weight: '0' +weight: 0 style: '' -status: '1' +status: true langcode: en protected_property: Default diff --git a/core/modules/config/tests/config_test/config/config_test.someschema.with_parents.yml b/core/modules/config/tests/config_test/config/config_test.someschema.with_parents.yml index 7f6870b..3f0b324 100644 --- a/core/modules/config/tests/config_test/config/config_test.someschema.with_parents.yml +++ b/core/modules/config/tests/config_test/config/config_test.someschema.with_parents.yml @@ -1,12 +1,12 @@ one_level: target_key: key_1 - testitem: "text for entry_1" + testitem: 'text for entry_1' two_levels: target_key: key_2 wrapper: - testitem: "text for entry_2" + testitem: 'text for entry_2' three_levels: target_key: key_3 wrapper_1: wrapper_2: - testitem: "text for entry_3" + testitem: 'text for entry_3' diff --git a/core/modules/config/tests/config_test/config/config_test.someschema.yml b/core/modules/config/tests/config_test/config/config_test.someschema.yml index 3afe100..c852074 100644 --- a/core/modules/config/tests/config_test/config/config_test.someschema.yml +++ b/core/modules/config/tests/config_test/config/config_test.someschema.yml @@ -1,4 +1,4 @@ -testitem: "Since this file at least has top level schema in config_test.schema.yml" +testitem: 'Since this file at least has top level schema in config_test.schema.yml' testlist: - - "Direct string items are identified and other items are" - - "recognized as undefined types." + - 'Direct string items are identified and other items are' + - 'recognized as undefined types.' diff --git a/core/modules/config/tests/config_test/config/schema/config_test.schema.yml b/core/modules/config/tests/config_test/config/schema/config_test.schema.yml index 597e9f7..a5c89e1 100644 --- a/core/modules/config/tests/config_test/config/schema/config_test.schema.yml +++ b/core/modules/config/tests/config_test/config/schema/config_test.schema.yml @@ -1,74 +1,76 @@ +# Schema for the configuration files of the Configuration Test module. + config_test.someschema: type: mapping - label: "Schema test data" + label: 'Schema test data' mapping: - "testitem": - label: "Test item" - "testlist": - label: "Test list" + testitem: + label: 'Test item' + testlist: + label: 'Test list' config_test.someschema.with_parents: - label: "Schema test data with parenting" + label: 'Schema test data with parenting' type: mapping mapping: one_level: - label: "Parenting one level up" + label: 'Parenting one level up' type: mapping mapping: target_key: - label: "Key used in parent relation" + label: 'Key used in parent relation' type: string testitem: type: config_test.someschema.with_parents.[%parent.target_key] two_levels: - label: "Parenting two levels up" + label: 'Parenting two levels up' type: mapping mapping: target_key: - label: "Key used in parent relation" + label: 'Key used in parent relation' type: string wrapper: - label: "Wrapper" + label: 'Wrapper' type: mapping mapping: testitem: type: config_test.someschema.with_parents.[%parent.%parent.target_key] three_levels: - label: "Parenting three levels up" + label: 'Parenting three levels up' type: mapping mapping: target_key: - label: "Key used in parent relation" + label: 'Key used in parent relation' type: string wrapper_1: - label: "Wrapper 1" + label: 'Wrapper 1' type: mapping mapping: wrapper_2: - label: "Wrapper 2" + label: 'Wrapper 2' type: mapping mapping: testitem: type: config_test.someschema.with_parents.[%parent.%parent.%parent.target_key] config_test.someschema.with_parents.key_1: - label: "Test item nested one level" + label: 'Test item nested one level' type: string config_test.someschema.with_parents.key_2: - label: "Test item nested two levels" + label: 'Test item nested two levels' type: string config_test.someschema.with_parents.key_3: - label: "Test item nested three levels" + label: 'Test item nested three levels' type: string config_test.someschema.somemodule.*.*: type: mapping label: 'Schema multiple filesytem marker test' mapping: - id: + testid: type: string label: 'ID' - description: + testdescription: type: text label: 'Description' @@ -131,3 +133,96 @@ config_test.schema_data_types: type: sequence sequence: - type: boolean + +config_test_dynamic: + type: mapping + mapping: + id: + type: string + label: 'ID' + uuid: + type: string + label: 'UUID' + label: + type: label + label: 'Label' + weight: + type: integer + label: 'Weight' + style: + type: string + label: 'style' + status: + type: boolean + label: 'Status' + langcode: + type: string + label: 'Default language' + protected_property: + type: string + label: 'Protected property' + +config_test.dynamic.*: + type: config_test_dynamic + label: 'Config test dynamic settings' + +config_test.dynamic.*.*: + type: config_test_dynamic + label: 'Config test dynamic settings' + +config_test.types: + type: mapping + label: 'Configuration type' + mapping: + array: + type: sequence + label: 'Array' + sequence: + - type: string + label: 'Item' + boolean: + type: boolean + label: 'Boolean' + float: + type: float + label: 'Float' + exp: + type: float + label: 'Exponential' + hex: + type: integer + label: 'Hexadecimal' + int: + type: integer + label: 'Integer' + octal: + type: integer + label: 'Octal' + string: + type: string + label: 'String' + string_int: + type: string + label: 'String integer' + +config_test.no_status.default: + type: mapping + label: 'Configuration no status default' + mapping: + id: + type: string + label: 'ID' + label: + type: label + label: 'Label' + +config_test.system: + type: mapping + label: 'Configuration system' + mapping: + foo: + type: string + label: 'Foo' + '404': + type: string + label: '404' diff --git a/core/modules/config/tests/config_test/lib/Drupal/config_test/TestInstallStorage.php b/core/modules/config/tests/config_test/lib/Drupal/config_test/TestInstallStorage.php new file mode 100644 index 0000000..e6ab912 --- /dev/null +++ b/core/modules/config/tests/config_test/lib/Drupal/config_test/TestInstallStorage.php @@ -0,0 +1,30 @@ +folders)) { + $this->folders = $this->getComponentNames('profile', array_keys(drupal_system_listing('/^' . DRUPAL_PHP_FUNCTION_PATTERN . '\.profile$/', 'profiles'))); + $this->folders += $this->getComponentNames('module', array_keys(drupal_system_listing('/^' . DRUPAL_PHP_FUNCTION_PATTERN . '\.module$/', 'modules', 'name', 0))); + $this->folders += $this->getComponentNames('theme', array_keys(drupal_system_listing('/^' . DRUPAL_PHP_FUNCTION_PATTERN . '\.info.yml$/', 'themes'))); + } + return $this->folders; + } + +} diff --git a/core/modules/config/tests/config_test/lib/Drupal/config_test/TestSchemaStorage.php b/core/modules/config/tests/config_test/lib/Drupal/config_test/TestSchemaStorage.php new file mode 100644 index 0000000..e62720f --- /dev/null +++ b/core/modules/config/tests/config_test/lib/Drupal/config_test/TestSchemaStorage.php @@ -0,0 +1,31 @@ +folders)) { + $this->folders = $this->getComponentNames('profile', array_keys(drupal_system_listing('/^' . DRUPAL_PHP_FUNCTION_PATTERN . '\.profile$/', 'profiles'))); + $this->folders += $this->getComponentNames('module', array_keys(drupal_system_listing('/^' . DRUPAL_PHP_FUNCTION_PATTERN . '\.module$/', 'modules', 'name', 0))); + $this->folders += $this->getComponentNames('theme', array_keys(drupal_system_listing('/^' . DRUPAL_PHP_FUNCTION_PATTERN . '\.info.yml$/', 'themes'))); + } + return $this->folders; + } + +} diff --git a/core/modules/config/tests/config_test_invalid_name/config/schema/config_test_invalid_name.schema.yml b/core/modules/config/tests/config_test_invalid_name/config/schema/config_test_invalid_name.schema.yml new file mode 100644 index 0000000..1f541b1 --- /dev/null +++ b/core/modules/config/tests/config_test_invalid_name/config/schema/config_test_invalid_name.schema.yml @@ -0,0 +1,9 @@ +# Schema for the configuration files of the Invalid Configuration Name module. + +invalid_object_name: + type: mapping + label: 'Invalid configuration' + mapping: + frittata: + type: string + label: 'String' diff --git a/core/modules/contact/config/schema/contact.views.schema.yml b/core/modules/contact/config/schema/contact.views.schema.yml new file mode 100644 index 0000000..6cc87ea --- /dev/null +++ b/core/modules/contact/config/schema/contact.views.schema.yml @@ -0,0 +1,5 @@ +# Schema for the views plugins of the Contact module. + +views.field.contact_link: + type: views.field.user_link + label: 'Link to user contact page' diff --git a/core/modules/contact/tests/modules/contact_test_views/test_views/views.view.test_contact_link.yml b/core/modules/contact/tests/modules/contact_test_views/test_views/views.view.test_contact_link.yml index b516661..1771823 100644 --- a/core/modules/contact/tests/modules/contact_test_views/test_views/views.view.test_contact_link.yml +++ b/core/modules/contact/tests/modules/contact_test_views/test_views/views.view.test_contact_link.yml @@ -44,7 +44,7 @@ display: id: 0 total_pages: '' expose: - items_per_page: 0 + items_per_page: false items_per_page_label: 'Items per page' items_per_page_options: 5, 10, 20, 40, 60 items_per_page_options_all: false diff --git a/core/modules/content_translation/config/schema/content_translation.views.schema.yml b/core/modules/content_translation/config/schema/content_translation.views.schema.yml new file mode 100644 index 0000000..c60e4a4 --- /dev/null +++ b/core/modules/content_translation/config/schema/content_translation.views.schema.yml @@ -0,0 +1,9 @@ +# Schema for the views plugins of the Views module. + +views.field.content_translation_link: + type: views_field + label: 'Content translation link' + mapping: + text: + type: label + label: 'Text to display' diff --git a/core/modules/content_translation/tests/modules/content_translation_test_views/test_views/views.view.test_entity_translations_link.yml b/core/modules/content_translation/tests/modules/content_translation_test_views/test_views/views.view.test_entity_translations_link.yml index 3d680e0..ddfb97d 100644 --- a/core/modules/content_translation/tests/modules/content_translation_test_views/test_views/views.view.test_entity_translations_link.yml +++ b/core/modules/content_translation/tests/modules/content_translation_test_views/test_views/views.view.test_entity_translations_link.yml @@ -8,7 +8,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: none @@ -96,7 +96,7 @@ display: display_plugin: page id: page_1 display_title: Page - position: '' + position: null display_options: path: test-entity-translations-link label: People diff --git a/core/modules/contextual/config/schema/contextual.views.schema.yml b/core/modules/contextual/config/schema/contextual.views.schema.yml new file mode 100644 index 0000000..235ada5 --- /dev/null +++ b/core/modules/contextual/config/schema/contextual.views.schema.yml @@ -0,0 +1,15 @@ +# Schema for the views plugins of the Contextual module. + +views.field.contextual_links: + type: views_field + label: 'Contextual link' + mapping: + fields: + type: sequence + label: 'Fields' + sequence: + - type: string + label: 'Link' + destination: + type: boolean + label: 'Include destination' diff --git a/core/modules/datetime/config/schema/datetime.schema.yml b/core/modules/datetime/config/schema/datetime.schema.yml index 05e9fc8..bd64841 100644 --- a/core/modules/datetime/config/schema/datetime.schema.yml +++ b/core/modules/datetime/config/schema/datetime.schema.yml @@ -23,3 +23,53 @@ field.datetime.value: sequence: - type: string label: 'Value' + +entity_display.field.datetime_default: + type: entity_field_display_base + label: 'Datetime default display format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + format_type: + type: string + label: 'Date format' + +entity_display.field.datetime_plain: + type: entity_field_display_base + label: 'Datetime plain display format settings' + mapping: + settings: + type: sequence + label: 'Settings' + sequence: + - type: string + +entity_form_display.field.datetime_datelist: + type: entity_field_form_display_base + label: 'Datetime select list display format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + increment: + type: integer + label: 'Time increments' + date_order: + type: string + label: 'Date part order' + time_type: + type: string + label: 'Time type' + +entity_form_display.field.datetime_default: + type: entity_field_form_display_base + label: 'Datetime default display format settings' + mapping: + settings: + type: sequence + label: 'Settings' + sequence: + - type: string diff --git a/core/modules/dblog/config/schema/dblog.views.schema.yml b/core/modules/dblog/config/schema/dblog.views.schema.yml new file mode 100644 index 0000000..e504364 --- /dev/null +++ b/core/modules/dblog/config/schema/dblog.views.schema.yml @@ -0,0 +1,13 @@ +# Schema for the views plugins of the Database Logging module. + +views.field.dblog_message: + type: views_field + label: 'Log event message' + mapping: + replace_variables: + type: boolean + label: 'Replace variables' + +views.field.dblog_operations: + type: views_field + label: 'Operation link markup' diff --git a/core/modules/dblog/tests/modules/dblog_test_views/test_views/views.view.test_dblog.yml b/core/modules/dblog/tests/modules/dblog_test_views/test_views/views.view.test_dblog.yml index e05c0ef..94c0497 100644 --- a/core/modules/dblog/tests/modules/dblog_test_views/test_views/views.view.test_dblog.yml +++ b/core/modules/dblog/tests/modules/dblog_test_views/test_views/views.view.test_dblog.yml @@ -8,7 +8,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: none @@ -52,7 +52,7 @@ display: display_plugin: page id: page_1 display_title: Page - position: '' + position: null display_options: path: test-dblog label: test_dblog diff --git a/core/modules/entity/config/schema/entity.data_types.yml b/core/modules/entity/config/schema/entity.data_types.yml new file mode 100644 index 0000000..51b118a --- /dev/null +++ b/core/modules/entity/config/schema/entity.data_types.yml @@ -0,0 +1,26 @@ +# Schema for entity fields, specifying generic component data type information. + +# Schema for the base of the view mode display format settings. +entity_field_display_base: + type: mapping + mapping: + label: + type: string + label: 'Label setting machine name' + type: + type: string + label: 'Format type machine name' + weight: + type: integer + label: 'Weight' + +# Schema for the base of the form mode display format settings. +entity_field_form_display_base: + type: mapping + mapping: + type: + type: string + label: 'Format type machine name' + weight: + type: integer + label: 'Weight' diff --git a/core/modules/entity/config/schema/entity.schema.yml b/core/modules/entity/config/schema/entity.schema.yml index eb8437b..ba30475 100644 --- a/core/modules/entity/config/schema/entity.schema.yml +++ b/core/modules/entity/config/schema/entity.schema.yml @@ -51,3 +51,90 @@ entity.form_mode.*.*: langcode: type: string label: 'Default language' + +# Overview configuration information for view mode or form mode displays. +entity.display.*.*.*: + type: mapping + label: 'Entity display' + mapping: + id: + type: string + label: 'Entity display ID' + uuid: + type: string + label: 'UUID' + targetEntityType: + type: string + label: 'Target entity type' + bundle: + type: string + label: 'Bundle' + mode: + type: string + label: 'View or form mode machine name' + status: + type: boolean + label: 'Enabled' + content: + type: sequence + label: 'Field display formatters' + sequence: + - type: entity_display.field.[type] + hidden: + type: sequence + label: 'Field display setting' + sequence: + - type: boolean + label: 'Value' + +# Overview configuration information for form mode displays. +entity.form_display.*.*.*: + type: mapping + label: 'Entity form display' + mapping: + id: + type: string + label: 'Entity display ID' + uuid: + type: string + label: 'UUID' + targetEntityType: + type: string + label: 'Target entity type' + bundle: + type: string + label: 'Bundle' + mode: + type: string + label: 'View or form mode machine name' + content: + type: sequence + label: 'Field form display formatters' + sequence: + - type: entity_form_display.field.[type] + status: + type: boolean + label: 'Enabled' + +# Default schemas, as no type for hidden. +entity_display.field.*: + type: mapping + label: 'Entity display default' + mapping: + visible: + type: boolean + label: 'Visibility' + weight: + type: integer + label: 'Weight' + +entity_form_display.field.*: + type: mapping + label: 'Entity form display default' + mapping: + visible: + type: boolean + label: 'Visibility' + weight: + type: integer + label: 'Weight' diff --git a/core/modules/entity_reference/config/schema/entity_reference.schema.yml b/core/modules/entity_reference/config/schema/entity_reference.schema.yml index 0abe2b9..c9c1037 100644 --- a/core/modules/entity_reference/config/schema/entity_reference.schema.yml +++ b/core/modules/entity_reference/config/schema/entity_reference.schema.yml @@ -66,3 +66,82 @@ entity_reference.default.handler_settings: auto_create: type: boolean label: 'Create referenced entities if they don''t already exist' + +entity_display.field.entity_reference_entity_view: + type: entity_field_display_base + label: 'Entity reference rendered entity display format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + view_mode: + type: string + label: 'View mode' + link: + type: boolean + label: 'Show links' + +entity_display.field.entity_reference_entity_id: + type: entity_field_display_base + label: 'Entity reference entity ID display format settings' + mapping: + settings: + type: sequence + label: 'Settings' + sequence: + - type: string + +entity_display.field.entity_reference_label: + type: entity_field_display_base + label: 'Entity reference label display format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + link: + type: boolean + label: 'Link label to the referenced entity' + +entity_form_display.field.entity_reference_autocomplete_tags: + type: entity_field_form_display_base + label: 'Entity reference autocomplete (Tags style) display format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + match_operator: + type: string + label: 'Autocomplete matching' + size: + type: integer + label: 'Size of textfield' + autocomplete_type: + type: string + label: 'Autocomplete type' + placeholder: + type: label + label: 'Placeholder' + +entity_form_display.field.entity_reference_autocomplete: + type: entity_field_form_display_base + label: 'Entity reference autocomplete display format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + match_operator: + type: string + label: 'Autocomplete matching' + size: + type: integer + label: 'Size of textfield' + autocomplete_type: + type: string + label: 'Autocomplete type' + placeholder: + type: label + label: 'Placeholder' diff --git a/core/modules/entity_reference/config/schema/entity_reference.views.schema.yml b/core/modules/entity_reference/config/schema/entity_reference.views.schema.yml new file mode 100644 index 0000000..f92af7b --- /dev/null +++ b/core/modules/entity_reference/config/schema/entity_reference.views.schema.yml @@ -0,0 +1,20 @@ +# Schema for the views plugins of the Entity Reference module. + +views.display.entity_reference: + type: views_display + label: 'Entity Reference' + +views.row.entity_reference: + type: views.row.fields + label: 'Entity Reference inline fields' + +views.style.entity_reference: + type: views_style + label: 'Entity Reference list' + mapping: + search_fields: + type: sequence + label: 'Search fields' + sequence: + - type: string + label: 'Search field' diff --git a/core/modules/entity_reference/tests/modules/entity_reference_test/config/views.view.test_entity_reference.yml b/core/modules/entity_reference/tests/modules/entity_reference_test/config/views.view.test_entity_reference.yml index 82c39d1..fbe112a 100644 --- a/core/modules/entity_reference/tests/modules/entity_reference_test/config/views.view.test_entity_reference.yml +++ b/core/modules/entity_reference/tests/modules/entity_reference_test/config/views.view.test_entity_reference.yml @@ -1,18 +1,30 @@ base_field: nid base_table: node -core: 8.x -module: entity_reference_test -id: test_entity_reference +core: '8' description: '' -label: 'Entity reference' -tag: '' status: true display: + entity_reference_1: + display_plugin: entity_reference + id: entity_reference_1 + display_title: EntityReference + position: null + display_options: + style: + type: entity_reference + options: + grouping: { } + search_fields: + title: title + pager: + type: none + options: + offset: 0 default: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm @@ -33,19 +45,52 @@ display: id: title table: node_field_data field: title + relationship: none + group_type: group + admin_label: '' label: '' + exclude: false alter: alter_text: false + text: '' make_link: false + path: '' absolute: false - trim: false + external: false + replace_spaces: false + path_case: none + trim_whitespace: false + alt: '' + rel: '' + link_class: '' + prefix: '' + suffix: '' + target: '' + nl2br: false + max_length: '' word_boundary: false ellipsis: false + more_link: false + more_link_text: '' + more_link_path: '' strip_tags: false + trim: false + preserve_tags: '' html: false + element_type: '' + element_class: '' + element_label_type: '' + element_label_class: '' + element_label_colon: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' hide_empty: false empty_zero: false + hide_alter_empty: true link_to_node: true + plugin_id: node provider: node filters: status: @@ -54,8 +99,9 @@ display: field: status id: status expose: - operator: 0 - group: true + operator: '' + group: 1 + plugin_id: boolean provider: views sorts: created: @@ -63,20 +109,11 @@ display: table: node_field_data field: created order: DESC + plugin_id: date provider: views - entity_reference_1: - display_plugin: entity_reference - id: entity_reference_1 - display_title: EntityReference - position: '' - display_options: - style: - type: entity_reference - options: - grouping: { } - search_fields: - title: title - pager: - type: none - options: - offset: 0 +label: 'Entity reference' +module: entity_reference_test +id: test_entity_reference +tag: '' +uuid: d82ab7cf-088c-485a-9d00-c77876e2fa76 +langcode: en diff --git a/core/modules/field/config/schema/field.schema.yml b/core/modules/field/config/schema/field.schema.yml index 33b8d3e..42db948 100644 --- a/core/modules/field/config/schema/field.schema.yml +++ b/core/modules/field/config/schema/field.schema.yml @@ -47,6 +47,9 @@ field.field.*.*: translatable: type: boolean label: 'Translatable' + active: + type: boolean + label: 'Active' indexes: type: sequence label: 'Indexes' @@ -101,3 +104,37 @@ field.instance.*.*.*: field_type: type: string label: 'Field type' + entity_type: + type: string + label: 'Entity type' + widget: + type: mapping + label: 'Field instance' + mapping: + weight: + type: integer + label: 'Weight' + type: + type: string + label: 'Type' + module: + type: string + label: 'Module' + settings: + type: mapping + label: 'Settings' + mapping: + size: + type: integer + label: 'Size' + +entity_form_display.field.hidden: + type: entity_field_form_display_base + label: '- Hidden - format settings' + mapping: + settings: + type: sequence + label: 'Settings' + sequence: + - type: string + diff --git a/core/modules/field/config/schema/field.views.schema.yml b/core/modules/field/config/schema/field.views.schema.yml new file mode 100644 index 0000000..9f6d995 --- /dev/null +++ b/core/modules/field/config/schema/field.views.schema.yml @@ -0,0 +1,60 @@ +# Schema for the views plugins of the Field module. + +views.argument.field_list: + type: views.argument.numeric + label: 'List field name' + mapping: + human: + type: boolean + label: 'Display list value as human readable' + +views.argument.field_list_string: + type: views.argument.string + label: 'List field name' + mapping: + human: + type: boolean + label: 'Display list value as human readable' + +views.field.field: + type: views_field + label: 'Log event message' + mapping: + click_sort_column: + type: string + label: 'Column used for click sorting' + type: + type: string + label: 'Formatter' + field_api_classes: + type: boolean + label: 'Use field template' + group_rows: + type: boolean + label: 'Display all values in the same row' + multi_type: + type: string + label: 'Display type' + separator: + type: label + label: 'Separator' + delta_limit: + type: string + label: 'Field' + delta_offset: + type: string + label: 'Offset' + delta_reversed: + type: boolean + label: 'Reversed' + delta_first_last: + type: boolean + label: 'First and last only' + +views.filter.field_list: + type: views.filter.many_to_one + label: 'List field' + +views.relationship.entity_reverse: + type: views_relationship + label: 'Reverse entity reference' diff --git a/core/modules/field/tests/modules/field_test_config/config/field.field.entity_test.field_test_import.yml b/core/modules/field/tests/modules/field_test_config/config/field.field.entity_test.field_test_import.yml index ff76026..20b5662 100644 --- a/core/modules/field/tests/modules/field_test_config/config/field.field.entity_test.field_test_import.yml +++ b/core/modules/field/tests/modules/field_test_config/config/field.field.entity_test.field_test_import.yml @@ -4,10 +4,10 @@ name: field_test_import entity_type: entity_test type: text settings: - max_length: '255' + max_length: 255 module: text -locked: '0' -cardinality: '1' +locked: false +cardinality: 1 translatable: false indexes: format: diff --git a/core/modules/field/tests/modules/field_test_config/config/field.field.entity_test.field_test_import_2.yml b/core/modules/field/tests/modules/field_test_config/config/field.field.entity_test.field_test_import_2.yml index 48d5cd6..a94a715 100644 --- a/core/modules/field/tests/modules/field_test_config/config/field.field.entity_test.field_test_import_2.yml +++ b/core/modules/field/tests/modules/field_test_config/config/field.field.entity_test.field_test_import_2.yml @@ -4,10 +4,10 @@ name: field_test_import_2 entity_type: entity_test type: text settings: - max_length: '255' + max_length: 255 module: text -locked: '0' -cardinality: '1' +locked: false +cardinality: 1 translatable: false indexes: format: diff --git a/core/modules/field/tests/modules/field_test_config/config/field.instance.entity_test.entity_test.field_test_import.yml b/core/modules/field/tests/modules/field_test_config/config/field.instance.entity_test.entity_test.field_test_import.yml index 55f2980..c1537bf 100644 --- a/core/modules/field/tests/modules/field_test_config/config/field.instance.entity_test.entity_test.field_test_import.yml +++ b/core/modules/field/tests/modules/field_test_config/config/field.instance.entity_test.entity_test.field_test_import.yml @@ -5,9 +5,9 @@ entity_type: entity_test bundle: entity_test label: 'Test import field' description: '' -required: '0' +required: false default_value: { } default_value_function: '' settings: - text_processing: '0' + text_processing: 0 field_type: text diff --git a/core/modules/field/tests/modules/field_test_config/config/field.instance.entity_test.entity_test.field_test_import_2.yml b/core/modules/field/tests/modules/field_test_config/config/field.instance.entity_test.entity_test.field_test_import_2.yml index 7bb59cf..942f081 100644 --- a/core/modules/field/tests/modules/field_test_config/config/field.instance.entity_test.entity_test.field_test_import_2.yml +++ b/core/modules/field/tests/modules/field_test_config/config/field.instance.entity_test.entity_test.field_test_import_2.yml @@ -5,15 +5,15 @@ entity_type: entity_test bundle: entity_test label: 'Test import field 2 on entity_test bundle' description: '' -required: '0' +required: false default_value: { } default_value_function: '' settings: - text_processing: '0' + text_processing: 0 widget: - weight: '-2' + weight: -2 type: text_textfield module: text settings: - size: '60' + size: 60 field_type: text diff --git a/core/modules/field/tests/modules/field_test_config/config/field.instance.entity_test.test_bundle.field_test_import_2.yml b/core/modules/field/tests/modules/field_test_config/config/field.instance.entity_test.test_bundle.field_test_import_2.yml index e58e846..f0b84d5 100644 --- a/core/modules/field/tests/modules/field_test_config/config/field.instance.entity_test.test_bundle.field_test_import_2.yml +++ b/core/modules/field/tests/modules/field_test_config/config/field.instance.entity_test.test_bundle.field_test_import_2.yml @@ -5,15 +5,15 @@ entity_type: entity_test bundle: test_bundle label: 'Test import field 2 on test bundle' description: '' -required: '0' +required: false default_value: { } default_value_function: '' settings: - text_processing: '0' + text_processing: 0 widget: - weight: '-2' + weight: -2 type: text_textfield module: text settings: - size: '60' + size: 60 field_type: text diff --git a/core/modules/field/tests/modules/field_test_views/test_views/views.view.test_view_fieldapi.yml b/core/modules/field/tests/modules/field_test_views/test_views/views.view.test_view_fieldapi.yml index b370ab1..275aefb 100644 --- a/core/modules/field/tests/modules/field_test_views/test_views/views.view.test_view_fieldapi.yml +++ b/core/modules/field/tests/modules/field_test_views/test_views/views.view.test_view_fieldapi.yml @@ -35,7 +35,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: test_view_fieldapi id: test_view_fieldapi tag: default diff --git a/core/modules/field_ui/lib/Drupal/field_ui/Tests/ManageFieldsTest.php b/core/modules/field_ui/lib/Drupal/field_ui/Tests/ManageFieldsTest.php index a8e6508..13bd159 100644 --- a/core/modules/field_ui/lib/Drupal/field_ui/Tests/ManageFieldsTest.php +++ b/core/modules/field_ui/lib/Drupal/field_ui/Tests/ManageFieldsTest.php @@ -402,7 +402,7 @@ function testLockedField() { 'bundle' => $this->type, ))->save(); entity_get_form_display('node', $this->type, 'default') - ->setComponent($field->id, array( + ->setComponent($field->name, array( 'type' => 'test_field_widget', )) ->save(); diff --git a/core/modules/file/config/schema/file.schema.yml b/core/modules/file/config/schema/file.schema.yml index 2c09484..fa34c7e 100644 --- a/core/modules/file/config/schema/file.schema.yml +++ b/core/modules/file/config/schema/file.schema.yml @@ -59,3 +59,56 @@ field.file.instance_settings: description_field: type: boolean label: 'Enable Description field' + +entity_display.field.file_default: + type: entity_field_display_base + label: 'Generic file format settings' + mapping: + settings: + type: sequence + label: 'Settings' + sequence: + - type: string + +entity_display.field.file_rss_enclosure: + type: entity_field_display_base + label: 'RSS enclosure format settings' + mapping: + settings: + type: sequence + label: 'Settings' + sequence: + - type: string + +entity_display.field.file_table: + type: entity_field_display_base + label: 'Table of files format settings' + mapping: + settings: + type: sequence + label: 'Settings' + sequence: + - type: string + +entity_display.field.file_url_plain: + type: entity_field_display_base + label: 'URL to file format settings' + mapping: + settings: + type: sequence + label: 'Settings' + sequence: + - type: string + + +entity_form_display.field.file_generic: + type: entity_field_form_display_base + label: 'File format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + progress_indicator: + type: string + label: 'Progress indicator' diff --git a/core/modules/file/config/schema/file.views.schema.yml b/core/modules/file/config/schema/file.views.schema.yml new file mode 100644 index 0000000..2f63384 --- /dev/null +++ b/core/modules/file/config/schema/file.views.schema.yml @@ -0,0 +1,46 @@ +# Schema for the views plugins of the File module. + + +views.argument.file_fid: + type: views.argument.numeric + label: 'File ID' + +views.field.file_extension: + type: views_field + label: 'File extension' + mapping: + extension_detect_tar: + type: boolean + label: 'Detect if tar is part of the extension' + +views.field.file: + type: views_field + label: 'File' + mapping: + link_to_file: + type: boolean + label: 'Link this field to download the file' + +views.field.file_filemime: + type: views.field.file + label: 'File MIME' + mapping: + filemime_image: + type: boolean + label: 'Display an icon representing the file type, instead of the MIME text (such as "image/jpeg")' + +views.field.file_status: + type: views_field + label: 'File status' + +views.field.file_uri: + type: views.field.file + label: 'File URI' + mapping: + file_download_path: + type: boolean + label: 'Display download path instead of file storage URI' + +views.filter.file_status: + type: views.filter.in_operator + label: 'File status' diff --git a/core/modules/file/config/views.view.files.yml b/core/modules/file/config/views.view.files.yml index 8aaae34..e192361 100644 --- a/core/modules/file/config/views.view.files.yml +++ b/core/modules/file/config/views.view.files.yml @@ -46,7 +46,7 @@ display: previous: '‹ previous' next: 'next ›' expose: - items_per_page: '0' + items_per_page: false items_per_page_label: 'Items per page' items_per_page_options: '5, 10, 20, 40, 60' items_per_page_options_all: false @@ -131,7 +131,7 @@ display: separator: '' empty_column: false responsive: priority-medium - default: changed + default: 'changed' empty_table: true row: type: fields @@ -151,7 +151,7 @@ display: html: false hide_empty: false empty_zero: false - link_to_file: '0' + link_to_file: false relationship: none group_type: group admin_label: '' @@ -167,6 +167,7 @@ display: element_default_classes: true empty: '' hide_alter_empty: true + plugin_id: file filename: id: filename table: file_managed @@ -182,7 +183,7 @@ display: html: false hide_empty: false empty_zero: false - link_to_file: '1' + link_to_file: true relationship: none group_type: group admin_label: '' @@ -198,6 +199,7 @@ display: element_default_classes: true empty: '' hide_alter_empty: true + plugin_id: file filemime: id: filemime table: file_managed @@ -246,8 +248,8 @@ display: hide_empty: false empty_zero: false hide_alter_empty: true - link_to_file: '0' - filemime_image: '0' + link_to_file: false + filemime_image: false plugin_id: file_filemime filesize: id: filesize @@ -520,7 +522,7 @@ display: admin_label: '' operator: word value: '' - group: '1' + group: 1 exposed: true expose: operator_id: filemime_op @@ -544,7 +546,7 @@ display: optional: true widget: select multiple: false - remember: 0 + remember: false default_group: All default_group_multiple: { } group_items: { } @@ -558,7 +560,7 @@ display: admin_label: '' operator: word value: '' - group: '1' + group: 1 exposed: true expose: operator_id: filemime_op @@ -582,7 +584,7 @@ display: optional: true widget: select multiple: false - remember: 0 + remember: false default_group: All default_group_multiple: { } group_items: { } @@ -596,7 +598,7 @@ display: admin_label: '' operator: in value: { } - group: '1' + group: 1 exposed: true expose: operator_id: status_op @@ -612,7 +614,7 @@ display: authenticated: authenticated anonymous: '0' administrator: '0' - reduce: '0' + reduce: false is_grouped: false group_info: label: '' @@ -621,7 +623,7 @@ display: optional: true widget: select multiple: false - remember: 0 + remember: false default_group: All default_group_multiple: { } group_items: { } @@ -648,8 +650,8 @@ display: admin_label: 'File usage' required: true arguments: { } - group_by: '1' - show_admin_links: '1' + group_by: true + show_admin_links: true page_1: display_plugin: page id: page_1 @@ -663,7 +665,7 @@ display: description: '' name: admin weight: 0 - context: '0' + context: '' display_description: '' defaults: pager: true @@ -688,7 +690,7 @@ display: path: admin/content/files/usage/% empty: { } defaults: - empty: '0' + empty: false pager: false pager_options: false filters: false @@ -711,14 +713,14 @@ display: previous: '‹ previous' next: 'next ›' expose: - items_per_page: '0' + items_per_page: false items_per_page_label: 'Items per page' items_per_page_options: '5, 10, 20, 40, 60' items_per_page_options_all: false items_per_page_options_all_label: '- All -' offset: false offset_label: Offset - pager_options: '' + pager_options: false filters: { } filter_groups: operator: AND @@ -772,7 +774,7 @@ display: hide_empty: false empty_zero: false hide_alter_empty: true - link_to_entity: '1' + link_to_entity: true plugin_id: entity_label provider: views type: @@ -934,7 +936,7 @@ display: suffix: '' plugin_id: numeric provider: views - group_by: '0' + group_by: false title: 'File usage' arguments: fid: @@ -951,8 +953,6 @@ display: title: All title_enable: true title: 'File usage information for %1' - breadcrumb_enable: false - breadcrumb: '' default_argument_type: fixed default_argument_options: argument: '' @@ -972,7 +972,7 @@ display: fail: 'not found' validate_options: { } break_phrase: false - not: '0' + not: false plugin_id: file_fid provider: file style: diff --git a/core/modules/file/tests/modules/file_test_views/test_views/views.view.file_extension_view.yml b/core/modules/file/tests/modules/file_test_views/test_views/views.view.file_extension_view.yml index 02cc72c..fe65a09 100644 --- a/core/modules/file/tests/modules/file_test_views/test_views/views.view.file_extension_view.yml +++ b/core/modules/file/tests/modules/file_test_views/test_views/views.view.file_extension_view.yml @@ -49,7 +49,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: 'Test view for file extension views field handler' id: file_extension_view tag: '' diff --git a/core/modules/filter/config/schema/filter.schema.yml b/core/modules/filter/config/schema/filter.schema.yml index 3f32071..f1df7df 100644 --- a/core/modules/filter/config/schema/filter.schema.yml +++ b/core/modules/filter/config/schema/filter.schema.yml @@ -47,3 +47,33 @@ filter.format.*: langcode: type: string label: 'Default language' + +filter_settings.*: + type: sequence + label: 'Filter settings' + sequence: + - type: string + label: 'Value' + +filter_settings.filter_html: + type: filter + label: 'Filter HTML' + mapping: + allowed_html: + type: string + label: 'Allowed HTML' + filter_html_help: + type: boolean + label: 'HTML help' + filter_html_nofollow: + type: boolean + label: 'HTML nofollow' + + +filter_settings.filter_url: + type: filter + label: 'Filter URL' + mapping: + filter_url_length: + type: integer + label: 'URL length' diff --git a/core/modules/forum/config/entity.display.taxonomy_term.forums.default.yml b/core/modules/forum/config/entity.display.taxonomy_term.forums.default.yml index ca4f340..7214333 100644 --- a/core/modules/forum/config/entity.display.taxonomy_term.forums.default.yml +++ b/core/modules/forum/config/entity.display.taxonomy_term.forums.default.yml @@ -7,3 +7,5 @@ status: true content: description: weight: 0 +hidden: { } +status: true diff --git a/core/modules/forum/tests/modules/forum_test_views/test_views/views.view.test_forum_index.yml b/core/modules/forum/tests/modules/forum_test_views/test_views/views.view.test_forum_index.yml index db09537..4edfdff 100644 --- a/core/modules/forum/tests/modules/forum_test_views/test_views/views.view.test_forum_index.yml +++ b/core/modules/forum/tests/modules/forum_test_views/test_views/views.view.test_forum_index.yml @@ -8,7 +8,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: none @@ -137,7 +137,7 @@ display: decimal: . separator: ',' format_plural: false - format_plural_singular: true + format_plural_singular: '1' format_plural_plural: '@count' prefix: '' suffix: '' diff --git a/core/modules/history/config/schema/history.views.schema.yml b/core/modules/history/config/schema/history.views.schema.yml new file mode 100644 index 0000000..8562d98 --- /dev/null +++ b/core/modules/history/config/schema/history.views.schema.yml @@ -0,0 +1,13 @@ +# Schema for the views plugins of the History module. + +views.field.history_user_timestamp: + type: views.field.node + label: 'History user' + mapping: + comments: + type: boolean + label: 'Check for new comments as well' + +views.filter.history_user_timestamp: + type: views_filter + label: 'History user' diff --git a/core/modules/image/config/schema/image.schema.yml b/core/modules/image/config/schema/image.schema.yml index b0dfd56..430a73d 100644 --- a/core/modules/image/config/schema/image.schema.yml +++ b/core/modules/image/config/schema/image.schema.yml @@ -162,3 +162,28 @@ field.image.instance_settings: default_image: type: field_default_image label: 'Default value' + +entity_display.field.image: + type: entity_field_display_base + label: 'Image field display format settings' + mapping: + settings: + type: sequence + label: 'Format settings' + sequence: + - type: string + +entity_form_display.field.image_image: + type: entity_field_form_display_base + label: 'Image field display format settings' + mapping: + settings: + type: mapping + label: 'Format settings' + mapping: + progress_indicator: + type: string + label: 'Progress indicator' + preview_image_style: + type: string + label: 'Preview image style' diff --git a/core/modules/language/config/language.entity.und.yml b/core/modules/language/config/language.entity.und.yml index f7559b1..59eef66 100644 --- a/core/modules/language/config/language.entity.und.yml +++ b/core/modules/language/config/language.entity.und.yml @@ -1,7 +1,7 @@ id: und uuid: 87e4ef47-819b-4d89-aa4b-757f9ce5a3b2 label: 'Not specified' -direction: false +direction: 0 weight: 1 locked: true status: true diff --git a/core/modules/language/config/language.entity.zxx.yml b/core/modules/language/config/language.entity.zxx.yml index 37b02d9..dbd85fb 100644 --- a/core/modules/language/config/language.entity.zxx.yml +++ b/core/modules/language/config/language.entity.zxx.yml @@ -1,7 +1,7 @@ id: zxx uuid: de5bb3a9-1038-4ada-ba05-05cc965ea702 label: 'Not applicable' -direction: false +direction: 0 weight: 2 locked: true status: true diff --git a/core/modules/language/config/schema/language.views.schema.yml b/core/modules/language/config/schema/language.views.schema.yml new file mode 100644 index 0000000..2dce3d2 --- /dev/null +++ b/core/modules/language/config/schema/language.views.schema.yml @@ -0,0 +1,13 @@ +# Schema for the views plugins of the Language module. + +views.argument.language: + type: views_argument + label: 'Language' + +views.field.language: + type: views_field + label: 'Language' + +views.filter.language: + type: views.filter.in_operator + label: 'Language' diff --git a/core/modules/link/config/schema/link.schema.yml b/core/modules/link/config/schema/link.schema.yml new file mode 100644 index 0000000..66bf8fa --- /dev/null +++ b/core/modules/link/config/schema/link.schema.yml @@ -0,0 +1,58 @@ +# Schema for the configuration files of the Link module. + +entity_display.field.link: + type: entity_field_display_base + label: 'Link format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + trim_length: + type: integer + label: 'Trim link text length' + url_only: + type: boolean + label: 'URL only' + url_plain: + type: boolean + label: 'Show URL as plain text' + rel: + type: string + label: 'Add rel="nofollow" to links' + target: + type: string + label: 'Open link in new window' + +entity_display.field.link_separate: + type: entity_field_display_base + label: 'Link format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + trim_length: + type: integer + label: 'Trim link text length' + rel: + type: string + label: 'Add rel="nofollow" to links' + target: + type: string + label: 'Open link in new window' + +entity_form_display.field.link_default: + type: entity_field_form_display_base + label: 'Link format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + placeholder_url: + type: string + label: 'Placeholder for URL' + placeholder_title: + type: label + label: 'Placeholder for link text' diff --git a/core/modules/locale/config/locale.settings.yml b/core/modules/locale/config/locale.settings.yml index a3640bc..857a369 100644 --- a/core/modules/locale/config/locale.settings.yml +++ b/core/modules/locale/config/locale.settings.yml @@ -10,4 +10,4 @@ translation: overwrite_not_customized: true update_interval_days: 0 path: '' - import_enabled: '1' + import_enabled: true diff --git a/core/modules/locale/config/schema/locale.schema.yml b/core/modules/locale/config/schema/locale.schema.yml index 0555934..72b89e1 100644 --- a/core/modules/locale/config/schema/locale.schema.yml +++ b/core/modules/locale/config/schema/locale.schema.yml @@ -42,3 +42,6 @@ locale.settings: path: type: string label: 'Interface translations directory' + import_enabled: + type: boolean + label: 'Import enabled' diff --git a/core/modules/locale/tests/modules/locale_test/config/schema/locale_test.schema.yml b/core/modules/locale/tests/modules/locale_test/config/schema/locale_test.schema.yml new file mode 100644 index 0000000..dd722be --- /dev/null +++ b/core/modules/locale/tests/modules/locale_test/config/schema/locale_test.schema.yml @@ -0,0 +1,17 @@ +# Schema for the configuration files of the Locale Test module. + +locale_test.no_translation: + type: mapping + label: 'No traslation settings' + mapping: + test: + type: string + label: 'Test' + +locale_test.translation: + type: mapping + label: 'translation settings' + mapping: + test: + type: string + label: 'Test' diff --git a/core/modules/node/config/entity.view_mode.node.full.yml b/core/modules/node/config/entity.view_mode.node.full.yml index 9d294f1..c944eb9 100644 --- a/core/modules/node/config/entity.view_mode.node.full.yml +++ b/core/modules/node/config/entity.view_mode.node.full.yml @@ -1,6 +1,6 @@ id: node.full uuid: faa8c4b0-64a5-458e-8e03-3ae4b4daee5b -label: Full content -status: '0' -cache: '1' +label: 'Full content' +status: false +cache: true targetEntityType: node diff --git a/core/modules/node/config/entity.view_mode.node.rss.yml b/core/modules/node/config/entity.view_mode.node.rss.yml index d2b9571..7f81099 100644 --- a/core/modules/node/config/entity.view_mode.node.rss.yml +++ b/core/modules/node/config/entity.view_mode.node.rss.yml @@ -1,6 +1,6 @@ id: node.rss uuid: a0f42dfa-6d27-40a3-a506-6d250c0fa47a label: RSS -status: '0' -cache: '1' +status: false +cache: true targetEntityType: node diff --git a/core/modules/node/config/entity.view_mode.node.teaser.yml b/core/modules/node/config/entity.view_mode.node.teaser.yml index b338d0c..d61cbf3 100644 --- a/core/modules/node/config/entity.view_mode.node.teaser.yml +++ b/core/modules/node/config/entity.view_mode.node.teaser.yml @@ -1,6 +1,6 @@ id: node.teaser uuid: 9f83c955-6c84-421b-b156-86764523ee53 label: Teaser -status: '1' -cache: '1' +status: true +cache: true targetEntityType: node diff --git a/core/modules/node/config/schema/node.schema.yml b/core/modules/node/config/schema/node.schema.yml index 506049b..07c69f2 100644 --- a/core/modules/node/config/schema/node.schema.yml +++ b/core/modules/node/config/schema/node.schema.yml @@ -87,3 +87,50 @@ search.plugin.node_search: sequence: - type: integer label: 'Influence' + +action.configuration.node_assign_owner_action: + type: mapping + label: 'Change the author of content configuration' + mapping: + owner_uid: + type: text + label: 'Username' + +action.configuration.node_unpromote_action: + type: action_configuration_default + label: 'Demote selected content from front page configuration' + +action.configuration.node_promote_action: + type: action_configuration_default + label: 'Promote selected content from front page configuration' + +action.configuration.node_publish_action: + type: action_configuration_default + label: 'Publish selected content configuration' + +action.configuration.node_save_action: + type: action_configuration_default + label: 'save content configuration' + +action.configuration.node_make_sticky_action: + type: action_configuration_default + label: 'Make selected content sticky configuration' + +action.configuration.node_unpublish_by_keyword_action: + type: mapping + label: 'Unpublish content containing keyword(s) configuration' + mapping: + keyword: + type: sequence + label: 'Keywords' + sequence: + - type: sequence + label: 'Keyword' + +action.configuration.node_unpublish_action: + type: action_configuration_default + label: 'Unpublish selected content configuration' + +action.configuration.node_unsticky_action: + type: action_configuration_default + label: 'Publish selected content not sticky configuration' diff --git a/core/modules/node/config/schema/node.views.schema.yml b/core/modules/node/config/schema/node.views.schema.yml new file mode 100644 index 0000000..4d6ab2c --- /dev/null +++ b/core/modules/node/config/schema/node.views.schema.yml @@ -0,0 +1,258 @@ +# Schema for the views plugins of the Node module. + +"views.row.entity:node": + type: views_entity_row + label: 'Entity options' + mapping: + links: + type: boolean + label: 'Display links' + comments: + type: boolean + label: 'Show comments' + build_mode: + type: string + label: 'Build mode' + +views.area.node_listing_empty: + type: views_area + label: 'Node link' + +views.argument.node_nid: + type: views_argument + label: 'Node ID' + mapping: + break_phrase: + type: boolean + label: 'Allow multiple values' + not: + type: boolean + label: 'Exclude' + +views.argument.node_type: + type: views_argument + label: 'Node type' + mapping: + glossary: + type: boolean + label: 'Glossary mode' + limit: + type: integer + label: 'Character limit' + case: + type: string + label: 'Case' + path_case: + type: string + label: 'Case in path' + transform_dash: + type: boolean + label: 'Transform spaces to dashes in URL' + break_phrase: + type: boolean + label: 'Allow multiple values' + add_table: + type: boolean + label: 'Allow multiple filter values to work together' + require_value: + type: boolean + label: 'Do not display items with no value in summary' + +views.argument.node_uid_revision: + type: views_argument + label: 'Node user ID' + mapping: + break_phrase: + type: boolean + label: 'Allow multiple values' + not: + type: boolean + label: 'Exclude' + +views.argument.node_vid: + type: views_argument + label: 'Node revision ID' + mapping: + break_phrase: + type: boolean + label: 'Allow multiple values' + not: + type: boolean + label: 'Exclude' + +views.argument_default.node: + type: sequence + label: 'Content ID from URL' + sequence: + - type: string + label: 'Nid' + +views.argument_validator.node: + type: mapping + label: 'Content' + mapping: + types: + type: sequence + label: 'Content types' + sequence: + - type: string + label: 'Type' + access: + type: boolean + label: 'Validate user has access to the content' + access_op: + type: boolean + label: 'Access operation to check' + nid_type: + type: string + label: 'Filter value format' + +views.field.node_language: + type: views_field + label: 'Node language' + mapping: + link_to_node: + type: boolean + label: 'Link this field to the original piece of content' + +views.field.node: + type: views_field + label: 'Node' + mapping: + link_to_node: + type: boolean + label: 'Link this field to the original piece of content' + +views.field.node_link: + type: views_field + label: 'Node link' + mapping: + text: + type: label + label: 'Text to display' + +views.field.node_link_delete: + type: views_field + label: 'Node delete link' + mapping: + text: + type: label + label: 'Text to display' + +views.field.node_link_edit: + type: views_field + label: 'Node edit link' + mapping: + text: + type: label + label: 'Text to display' + +views.field.node_bulk_form: + type: views_field_bulk_form + label: 'Node bulk form' + mapping: + include_exclude: + type: string + label: 'Available actions' + selected_actions: + type: sequence + label: 'Available actions' + sequence: + - type: string + label: 'Action' + +views.field.node_path: + type: views_field + label: 'Node path' + mapping: + absolute: + type: boolean + label: 'Use absolute link (begins with "http://")' + +views.field.node_revision: + type: views_field + label: 'Node revision' + mapping: + link_to_node_revision: + type: boolean + label: 'Link this field to its content revision' + +views.field.node_revision_link: + type: views_field + label: 'Link to a node revision' + mapping: + text: + type: label + label: 'Text to display' + +views.field.node_revision_link_delete: + type: views_field + label: 'Link to delete a node revision' + mapping: + text: + type: label + label: 'Text to display' + +views.field.node_revision_link_revert: + type: views_field + label: 'Link to revert a node to a revision' + mapping: + text: + type: label + label: 'Text to display' + +views.field.node_type: + type: views.field.node + label: 'Node type' + mapping: + machine_name: + type: string + label: 'Output machine name' + +views.filter.node_access: + type: views_filter + label: 'Node access' + +views.filter.node_status: + type: views_filter + label: 'Node status' + +views.filter.node_uid_revision: + type: views_filter + label: 'Node revisions of an user' + mapping: + operator: + type: string + label: 'Operator' + value: + type: sequence + label: 'Values' + sequence: + - type: string + label: 'Value' + expose: + type: mapping + label: 'Expose' + mapping: + reduce: + type: boolean + label: 'Reduce' + +views.filter_value.node_access: + type: string + label: 'Access' + +views.filter_value.node_status: + type: boolean + label: 'Status' + +views.row.node_rss: + type: "views.row.entity:node" + label: 'Content' + mapping: + item_length: + type: string + label: 'Display type' + links: + type: boolean + label: 'Display links' \ No newline at end of file diff --git a/core/modules/node/config/system.action.node_delete_action.yml b/core/modules/node/config/system.action.node_delete_action.yml index 72183b0..def1156 100644 --- a/core/modules/node/config/system.action.node_delete_action.yml +++ b/core/modules/node/config/system.action.node_delete_action.yml @@ -1,7 +1,7 @@ id: node_delete_action uuid: 39dc5faa-8f59-4740-a100-b69e7975e6dd label: 'Delete selected content' -status: '1' +status: true langcode: en type: node plugin: node_delete_action diff --git a/core/modules/node/config/system.action.node_make_sticky_action.yml b/core/modules/node/config/system.action.node_make_sticky_action.yml index 9358694..f9907bb 100644 --- a/core/modules/node/config/system.action.node_make_sticky_action.yml +++ b/core/modules/node/config/system.action.node_make_sticky_action.yml @@ -1,7 +1,7 @@ id: node_make_sticky_action uuid: d1d2c940-3dcd-4468-a100-bb4fb7137522 label: 'Make content sticky' -status: '1' +status: true langcode: en type: node plugin: node_make_sticky_action diff --git a/core/modules/node/config/system.action.node_make_unsticky_action.yml b/core/modules/node/config/system.action.node_make_unsticky_action.yml index 478973e..e41e929 100644 --- a/core/modules/node/config/system.action.node_make_unsticky_action.yml +++ b/core/modules/node/config/system.action.node_make_unsticky_action.yml @@ -1,7 +1,7 @@ id: node_make_unsticky_action uuid: 63b14a98-3b54-4152-ae12-183b45fbe68d label: 'Make content unsticky' -status: '1' +status: true langcode: en type: node plugin: node_make_unsticky_action diff --git a/core/modules/node/config/system.action.node_promote_action.yml b/core/modules/node/config/system.action.node_promote_action.yml index 13c2993..6d6e101 100644 --- a/core/modules/node/config/system.action.node_promote_action.yml +++ b/core/modules/node/config/system.action.node_promote_action.yml @@ -1,7 +1,7 @@ id: node_promote_action uuid: 593a6ad3-6ff8-4f22-9308-8fb9398f1076 label: 'Promote content to front page' -status: '1' +status: true langcode: en type: node plugin: node_promote_action diff --git a/core/modules/node/config/system.action.node_publish_action.yml b/core/modules/node/config/system.action.node_publish_action.yml index 5a5a031..d1081c4 100644 --- a/core/modules/node/config/system.action.node_publish_action.yml +++ b/core/modules/node/config/system.action.node_publish_action.yml @@ -1,7 +1,7 @@ id: node_publish_action uuid: 83bc5b18-6987-4106-be00-bbf90333a655 label: 'Publish content' -status: '1' +status: true langcode: en type: node plugin: node_publish_action diff --git a/core/modules/node/config/system.action.node_save_action.yml b/core/modules/node/config/system.action.node_save_action.yml index af3b617..9b1b86c 100644 --- a/core/modules/node/config/system.action.node_save_action.yml +++ b/core/modules/node/config/system.action.node_save_action.yml @@ -1,7 +1,7 @@ id: node_save_action uuid: 493b5aa1-25b1-4e62-af07-079952c04108 label: 'Save content' -status: '1' +status: true langcode: en type: node plugin: node_save_action diff --git a/core/modules/node/config/system.action.node_unpromote_action.yml b/core/modules/node/config/system.action.node_unpromote_action.yml index f0b262d..13c8537 100644 --- a/core/modules/node/config/system.action.node_unpromote_action.yml +++ b/core/modules/node/config/system.action.node_unpromote_action.yml @@ -1,7 +1,7 @@ id: node_unpromote_action uuid: 887c7a3c-8ccf-459c-8528-4089fdbfb143 label: 'Remove content from front page' -status: '1' +status: true langcode: en type: node plugin: node_unpromote_action diff --git a/core/modules/node/config/system.action.node_unpublish_action.yml b/core/modules/node/config/system.action.node_unpublish_action.yml index b2938a7..b9bc350 100644 --- a/core/modules/node/config/system.action.node_unpublish_action.yml +++ b/core/modules/node/config/system.action.node_unpublish_action.yml @@ -1,7 +1,7 @@ id: node_unpublish_action uuid: 7479d776-df6e-4c8b-a400-f4246c289850 label: 'Unpublish content' -status: '1' +status: true langcode: en type: node plugin: node_unpublish_action diff --git a/core/modules/node/config/views.view.content.yml b/core/modules/node/config/views.view.content.yml index ed55d9e..c985545 100644 --- a/core/modules/node/config/views.view.content.yml +++ b/core/modules/node/config/views.view.content.yml @@ -163,7 +163,7 @@ display: hide_empty: false empty_zero: false hide_alter_empty: true - link_to_node: '1' + link_to_node: true plugin_id: node provider: node type: @@ -180,8 +180,8 @@ display: hide_empty: false empty_zero: false hide_alter_empty: true - link_to_node: '0' - machine_name: '0' + link_to_node: false + machine_name: '' plugin_id: node_type provider: node name: @@ -199,10 +199,10 @@ display: hide_empty: false empty_zero: false hide_alter_empty: true - link_to_user: '1' - overwrite_anonymous: '0' + link_to_user: true + overwrite_anonymous: false anonymous_text: '' - format_username: '1' + format_username: true plugin_id: user_name provider: user status: @@ -222,7 +222,7 @@ display: type: published-notpublished type_custom_true: '' type_custom_false: '' - not: '0' + not: '' plugin_id: boolean provider: views changed: @@ -277,7 +277,7 @@ display: empty_zero: false empty: '' text: Translate - optional: '1' + optional: true plugin_id: content_translation_link provider: content_translation dropbutton: @@ -289,7 +289,7 @@ display: edit_node: edit_node delete_node: delete_node translation_link: translation_link - destination: '1' + destination: true plugin_id: dropbutton provider: views timestamp: @@ -340,8 +340,8 @@ display: hide_empty: false empty_zero: false hide_alter_empty: true - link_to_node: '0' - comments: '0' + link_to_node: false + comments: false plugin_id: history_user_timestamp provider: history filters: @@ -350,10 +350,10 @@ display: table: node_field_data field: status_extra operator: '=' - value: '' + value: false plugin_id: node_status provider: node - group: '1' + group: 1 status: id: status table: node_field_data @@ -362,8 +362,8 @@ display: group_type: group admin_label: '' operator: '=' - value: All - group: '1' + value: true + group: 1 exposed: true expose: operator_id: '' @@ -385,7 +385,7 @@ display: optional: true widget: select multiple: false - remember: 0 + remember: false default_group: All default_group_multiple: { } group_items: @@ -408,7 +408,7 @@ display: admin_label: '' operator: in value: { } - group: '1' + group: 1 exposed: true expose: operator_id: type_op @@ -433,7 +433,7 @@ display: optional: true widget: select multiple: false - remember: 0 + remember: false default_group: All default_group_multiple: { } group_items: { } @@ -448,7 +448,7 @@ display: admin_label: '' operator: contains value: '' - group: '1' + group: 1 exposed: true expose: operator_id: title_op @@ -472,7 +472,7 @@ display: optional: true widget: select multiple: false - remember: 0 + remember: false default_group: All default_group_multiple: { } group_items: { } @@ -484,7 +484,7 @@ display: field: langcode operator: in value: { } - group: '1' + group: 1 exposed: true expose: operator_id: langcode_op @@ -493,7 +493,7 @@ display: identifier: langcode remember_roles: authenticated: authenticated - optional: '1' + optional: true plugin_id: language provider: language sorts: { } @@ -517,7 +517,7 @@ display: required: true plugin_id: standard provider: views - show_admin_links: '0' + show_admin_links: false filter_groups: operator: AND groups: @@ -535,7 +535,7 @@ display: description: '' name: admin weight: -10 - context: '0' + context: '' tab_options: type: normal title: Content diff --git a/core/modules/node/config/views.view.content_recent.yml b/core/modules/node/config/views.view.content_recent.yml index c96c760..26be0d7 100644 --- a/core/modules/node/config/views.view.content_recent.yml +++ b/core/modules/node/config/views.view.content_recent.yml @@ -2,21 +2,13 @@ base_field: nid base_table: node core: 8.x description: 'Recent content.' -status: 1 +status: true display: - block_1: - display_plugin: block - id: block_1 - display_title: Block - position: '1' - block_category: 'Lists (Views)' - display_options: - link_url: admin/content default: display_plugin: default id: default display_title: Master - position: '1' + position: 1 display_options: access: type: perm @@ -28,35 +20,35 @@ display: query: type: views_query options: - disable_sql_rewrite: '0' - distinct: '0' - slave: '0' - query_comment: '' + disable_sql_rewrite: false + distinct: false + slave: false + query_comment: false query_tags: { } exposed_form: type: basic options: submit_button: Apply - reset_button: '0' + reset_button: false reset_button_label: Reset exposed_sorts_label: 'Sort by' - expose_sort_order: '1' + expose_sort_order: true sort_asc_label: Asc sort_desc_label: Desc pager: type: some options: - items_per_page: '10' - offset: '0' + items_per_page: 10 + offset: 0 style: type: table options: grouping: { } row_class: '' - default_row_class: '1' - row_class_special: '1' - override: '1' - sticky: '0' + default_row_class: true + row_class_special: true + override: true + sticky: false caption: '' summary: '' description: '' @@ -68,42 +60,42 @@ display: delete_node: delete_node info: title: - sortable: '0' + sortable: false default_sort_order: asc align: '' separator: '' - empty_column: '0' + empty_column: false responsive: '' timestamp: - sortable: '0' + sortable: false default_sort_order: asc align: '' separator: '' - empty_column: '0' + empty_column: false responsive: '' name: - sortable: '0' + sortable: false default_sort_order: asc align: '' separator: '' - empty_column: '0' + empty_column: false responsive: '' edit_node: - sortable: '0' + sortable: false default_sort_order: asc align: '' separator: '' - empty_column: '1' + empty_column: true responsive: '' delete_node: - sortable: '0' + sortable: false default_sort_order: asc align: '' separator: '' - empty_column: '1' + empty_column: true responsive: '' default: '-1' - empty_table: '0' + empty_table: false row: type: fields fields: @@ -115,47 +107,48 @@ display: group_type: group admin_label: '' label: '' - exclude: '0' + exclude: false alter: - alter_text: '0' + alter_text: false text: '' - make_link: '0' + make_link: false path: '' - absolute: '0' - external: '0' - replace_spaces: '0' + absolute: false + external: false + replace_spaces: false path_case: none - trim_whitespace: '0' + trim_whitespace: false alt: '' rel: '' link_class: '' prefix: '' suffix: '' target: '' - nl2br: '0' + nl2br: false max_length: '' - word_boundary: '0' - ellipsis: '0' - more_link: '0' + word_boundary: false + ellipsis: false + more_link: false more_link_text: '' more_link_path: '' - strip_tags: '0' - trim: '0' + strip_tags: false + trim: false preserve_tags: '' - html: '0' + html: false element_type: '' element_class: '' element_label_type: '' element_label_class: '' - element_label_colon: '0' + element_label_colon: false element_wrapper_type: '' element_wrapper_class: '' - element_default_classes: '1' + element_default_classes: true empty: '' - hide_empty: '0' - empty_zero: '0' - hide_alter_empty: '1' - link_to_node: '1' + hide_empty: false + empty_zero: false + hide_alter_empty: true + link_to_node: true + plugin_id: node provider: node timestamp: id: timestamp @@ -165,48 +158,48 @@ display: group_type: group admin_label: '' label: '' - exclude: '0' + exclude: false alter: - alter_text: '0' + alter_text: false text: '' - make_link: '0' + make_link: false path: '' - absolute: '0' - external: '0' - replace_spaces: '0' + absolute: false + external: false + replace_spaces: false path_case: none - trim_whitespace: '0' + trim_whitespace: false alt: '' rel: '' link_class: '' prefix: '' suffix: '' target: '' - nl2br: '0' + nl2br: false max_length: '' - word_boundary: '1' - ellipsis: '1' - more_link: '0' + word_boundary: true + ellipsis: true + more_link: false more_link_text: '' more_link_path: '' - strip_tags: '0' - trim: '0' + strip_tags: false + trim: false preserve_tags: '' - html: '0' + html: false element_type: '' element_class: '' element_label_type: '' element_label_class: '' - element_label_colon: '0' + element_label_colon: false element_wrapper_type: '' element_wrapper_class: '' - element_default_classes: '1' + element_default_classes: true empty: '' - hide_empty: '0' - empty_zero: '0' - hide_alter_empty: '1' - link_to_node: '0' - comments: '0' + hide_empty: false + empty_zero: false + hide_alter_empty: true + link_to_node: false + comments: false plugin_id: history_user_timestamp provider: history name: @@ -217,50 +210,50 @@ display: group_type: group admin_label: '' label: '' - exclude: '0' + exclude: false alter: - alter_text: '0' + alter_text: false text: '' - make_link: '0' + make_link: false path: '' - absolute: '0' - external: '0' - replace_spaces: '0' + absolute: false + external: false + replace_spaces: false path_case: none - trim_whitespace: '0' + trim_whitespace: false alt: '' rel: '' link_class: '' prefix: '' suffix: '' target: '' - nl2br: '0' + nl2br: false max_length: '' - word_boundary: '1' - ellipsis: '1' - more_link: '0' + word_boundary: true + ellipsis: true + more_link: false more_link_text: '' more_link_path: '' - strip_tags: '0' - trim: '0' + strip_tags: false + trim: false preserve_tags: '' - html: '0' + html: false element_type: div element_class: '' element_label_type: '' element_label_class: '' - element_label_colon: '0' + element_label_colon: false element_wrapper_type: '' element_wrapper_class: '' - element_default_classes: '1' + element_default_classes: true empty: '' - hide_empty: '0' - empty_zero: '0' - hide_alter_empty: '1' - link_to_user: '1' - overwrite_anonymous: '0' + hide_empty: false + empty_zero: false + hide_alter_empty: true + link_to_user: true + overwrite_anonymous: false anonymous_text: '' - format_username: '1' + format_username: true plugin_id: user_name provider: user edit_node: @@ -271,46 +264,46 @@ display: group_type: group admin_label: '' label: '' - exclude: '0' + exclude: false alter: - alter_text: '0' + alter_text: false text: '' - make_link: '0' + make_link: false path: '' - absolute: '0' - external: '0' - replace_spaces: '0' + absolute: false + external: false + replace_spaces: false path_case: none - trim_whitespace: '0' + trim_whitespace: false alt: '' rel: '' link_class: '' prefix: '' suffix: '' target: '' - nl2br: '0' + nl2br: false max_length: '' - word_boundary: '1' - ellipsis: '1' - more_link: '0' + word_boundary: true + ellipsis: true + more_link: false more_link_text: '' more_link_path: '' - strip_tags: '0' - trim: '0' + strip_tags: false + trim: false preserve_tags: '' - html: '0' + html: false element_type: '' element_class: '' element_label_type: '' element_label_class: '' - element_label_colon: '0' + element_label_colon: false element_wrapper_type: '' element_wrapper_class: '' - element_default_classes: '1' + element_default_classes: true empty: '' - hide_empty: '0' - empty_zero: '0' - hide_alter_empty: '1' + hide_empty: false + empty_zero: false + hide_alter_empty: true text: edit plugin_id: node_link_edit provider: node @@ -322,46 +315,46 @@ display: group_type: group admin_label: '' label: '' - exclude: '0' + exclude: false alter: - alter_text: '0' + alter_text: false text: '' - make_link: '0' + make_link: false path: '' - absolute: '0' - external: '0' - replace_spaces: '0' + absolute: false + external: false + replace_spaces: false path_case: none - trim_whitespace: '0' + trim_whitespace: false alt: '' rel: '' link_class: '' prefix: '' suffix: '' target: '' - nl2br: '0' + nl2br: false max_length: '' - word_boundary: '1' - ellipsis: '1' - more_link: '0' + word_boundary: true + ellipsis: true + more_link: false more_link_text: '' more_link_path: '' - strip_tags: '0' - trim: '0' + strip_tags: false + trim: false preserve_tags: '' - html: '0' + html: false element_type: '' element_class: '' element_label_type: '' element_label_class: '' - element_label_colon: '0' + element_label_colon: false element_wrapper_type: '' element_wrapper_class: '' - element_default_classes: '1' + element_default_classes: true empty: '' - hide_empty: '0' - empty_zero: '0' - hide_alter_empty: '1' + hide_empty: false + empty_zero: false + hide_alter_empty: true text: delete plugin_id: node_link_delete provider: node @@ -374,30 +367,30 @@ display: group_type: group admin_label: '' operator: '=' - value: '' - group: '1' - exposed: '0' + value: false + group: 1 + exposed: false expose: operator_id: '0' label: '' description: '' - use_operator: '0' + use_operator: false operator: '' identifier: '' - required: '0' - remember: '0' - multiple: '0' + required: false + remember: false + multiple: false remember_roles: authenticated: authenticated - is_grouped: '0' + is_grouped: false group_info: label: '' description: '' identifier: '' - optional: '1' + optional: true widget: select - multiple: '0' - remember: '0' + multiple: false + remember: false default_group: All default_group_multiple: { } group_items: { } @@ -412,7 +405,7 @@ display: group_type: group admin_label: '' order: DESC - exposed: '0' + exposed: false expose: label: '' granularity: second @@ -429,8 +422,8 @@ display: relationship: none group_type: group admin_label: '' - empty: '1' - tokenize: '0' + empty: true + tokenize: false content: 'No content available.' plugin_id: text_custom provider: views @@ -442,17 +435,25 @@ display: relationship: none group_type: group admin_label: author - required: '1' + required: true plugin_id: standard provider: views arguments: { } filter_groups: operator: AND groups: { } - use_more: '1' - use_more_always: '1' + use_more: true + use_more_always: true use_more_text: More link_display: custom_url + block_1: + display_plugin: block + id: block_1 + display_title: Block + position: 1 + display_options: + link_url: admin/content + block_category: 'Lists (Views)' label: 'Recent content' module: views id: content_recent diff --git a/core/modules/node/config/views.view.frontpage.yml b/core/modules/node/config/views.view.frontpage.yml index 1a7afa5..a7526a1 100644 --- a/core/modules/node/config/views.view.frontpage.yml +++ b/core/modules/node/config/views.view.frontpage.yml @@ -69,7 +69,7 @@ display: label: '' multiple: false operator: '' - operator_id: '0' + operator_id: '' remember: false remember_roles: authenticated: authenticated @@ -77,7 +77,7 @@ display: use_operator: false exposed: false field: promote - group: '1' + group: 1 group_info: default_group: All default_group_multiple: { } @@ -87,7 +87,7 @@ display: label: '' multiple: false optional: true - remember: 0 + remember: false widget: select group_type: group id: promote @@ -95,17 +95,17 @@ display: operator: '=' relationship: none table: node_field_data - value: '1' + value: true plugin_id: boolean provider: views status: expose: - operator: '0' + operator: '' field: status - group: '1' + group: 1 id: status table: node_field_data - value: '1' + value: true plugin_id: boolean provider: views pager: @@ -116,7 +116,7 @@ display: id: 0 total_pages: 0 expose: - items_per_page: '0' + items_per_page: false items_per_page_label: 'Items per page' items_per_page_options: '5, 10, 20, 40, 60' items_per_page_options_all: false @@ -128,7 +128,7 @@ display: next: 'next ›' first: '« first' last: 'last »' - quantity: '9' + quantity: 9 query: type: views_query options: @@ -141,8 +141,8 @@ display: type: 'entity:node' options: build_mode: teaser - comments: '0' - links: '1' + comments: false + links: true view_mode: teaser sorts: sticky: @@ -207,7 +207,7 @@ display: path: rss.xml displays: page_1: page_1 - default: '0' + default: '' pager: type: some options: @@ -218,13 +218,13 @@ display: options: description: '' grouping: { } - uses_fields: '0' + uses_fields: false row: type: node_rss options: relationship: none item_length: default - links: '0' + links: false label: Frontpage module: node id: frontpage diff --git a/core/modules/node/tests/modules/node_test_config/config/node.type.default.yml b/core/modules/node/tests/modules/node_test_config/config/node.type.default.yml index a93a9c6..e7b22b8 100644 --- a/core/modules/node/tests/modules/node_test_config/config/node.type.default.yml +++ b/core/modules/node/tests/modules/node_test_config/config/node.type.default.yml @@ -3,16 +3,16 @@ uuid: ca226632-3186-42a2-8440-a526f20840af name: Default description: 'Default description.' help: '' -has_title: '1' +has_title: true title_label: Title settings: node: - preview: '1' + preview: 1 options: - status: status - promote: promote - sticky: '0' - revision: '0' - submitted: '1' -status: '1' + status: true + promote: true + sticky: false + revision: false + submitted: true +status: true langcode: en diff --git a/core/modules/node/tests/modules/node_test_config/staging/node.type.import.yml b/core/modules/node/tests/modules/node_test_config/staging/node.type.import.yml index e5ce0ba..6678738 100644 --- a/core/modules/node/tests/modules/node_test_config/staging/node.type.import.yml +++ b/core/modules/node/tests/modules/node_test_config/staging/node.type.import.yml @@ -3,16 +3,16 @@ uuid: 1a720d40-7bcd-41e3-ae4d-08d1cad4ac2a name: Import description: 'Import description.' help: '' -has_title: '1' +has_title: true title_label: Title settings: node: - preview: '1' + preview: 1 options: status: status promote: promote - sticky: '0' - revision: '0' - submitted: '1' -status: '1' + sticky: false + revision: false + submitted: true +status: true langcode: en diff --git a/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_contextual_links.yml b/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_contextual_links.yml index 7d807a8..588d0cc 100644 --- a/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_contextual_links.yml +++ b/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_contextual_links.yml @@ -16,47 +16,47 @@ display: pager: type: full options: - items_per_page: '10' - offset: '0' - id: '0' + items_per_page: 10 + offset: 0 + id: 0 total_pages: '' expose: - items_per_page: '0' + items_per_page: false items_per_page_label: 'Items per page' items_per_page_options: '5, 10, 20, 40, 60' items_per_page_options_all: '0' items_per_page_options_all_label: '- All -' - offset: '0' + offset: false offset_label: Offset tags: previous: '‹ previous' next: 'next ›' first: '« first' last: 'last »' - quantity: '9' + quantity: 9 query: type: views_query options: - disable_sql_rewrite: '0' - distinct: '0' - slave: '0' + disable_sql_rewrite: false + distinct: false + slave: false query_comment: '' query_tags: { } row: type: 'entity:node' options: build_mode: teaser - comments: '0' - links: '1' + comments: false + links: true view_mode: teaser style: type: default options: grouping: { } row_class: '' - default_row_class: '1' - row_class_special: '1' - uses_fields: '0' + default_row_class: true + row_class_special: pager: + uses_fields: false title: '' header: { } footer: { } @@ -66,7 +66,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: path: node/%/contextual-links @@ -85,12 +85,12 @@ display: title: 'Test contextual link' description: '' name: tools - weight: '0' - context: '1' + weight: 0 + context: true display_plugin: page display_title: Page id: page_1 - position: '1' + position: 1 label: Contextual links module: node id: test_contextual_links diff --git a/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_field_type.yml b/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_field_type.yml index 6113c52..a60b7b3 100644 --- a/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_field_type.yml +++ b/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_field_type.yml @@ -15,7 +15,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_field_type tag: '' diff --git a/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_filter_node_uid_revision.yml b/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_filter_node_uid_revision.yml index 2d81672..76f3bd9 100644 --- a/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_filter_node_uid_revision.yml +++ b/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_filter_node_uid_revision.yml @@ -55,7 +55,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: test_filter_node_uid_revision id: test_filter_node_uid_revision tag: default diff --git a/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_bulk_form.yml b/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_bulk_form.yml index e0748bc..fa63477 100644 --- a/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_bulk_form.yml +++ b/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_bulk_form.yml @@ -8,7 +8,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: style: type: table @@ -39,7 +39,7 @@ display: display_plugin: page id: page_1 display_title: Page - position: '' + position: null display_options: path: test-node-bulk-form label: '' diff --git a/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_revision_nid.yml b/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_revision_nid.yml index 24ca887..fae1b18 100644 --- a/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_revision_nid.yml +++ b/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_revision_nid.yml @@ -42,4 +42,4 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 diff --git a/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_revision_vid.yml b/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_revision_vid.yml index 581aa2b..7871029 100644 --- a/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_revision_vid.yml +++ b/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_revision_vid.yml @@ -42,4 +42,4 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 diff --git a/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_row_plugin.yml b/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_row_plugin.yml index e7bae25..84b9a57 100644 --- a/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_row_plugin.yml +++ b/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_row_plugin.yml @@ -2,7 +2,7 @@ base_field: nid base_table: node core: 8 description: '' -status: '1' +status: true display: default: display_options: @@ -15,25 +15,25 @@ display: filters: status: expose: - operator: '0' + operator: '' field: status - group: '1' + group: 1 id: status table: node - value: '1' + value: true plugin_id: boolean provider: views pager: options: - items_per_page: '10' + items_per_page: 10 type: full query: type: views_query row: options: build_mode: teaser - comments: '0' - links: '1' + comments: false + links: true type: 'entity:node' sorts: { } style: diff --git a/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_view.yml b/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_view.yml index 9979d17..a3c1f80 100644 --- a/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_view.yml +++ b/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_node_view.yml @@ -8,14 +8,14 @@ display: display_plugin: page id: page_1 display_title: Page - position: '' + position: null display_options: path: test-node-view default: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm @@ -45,24 +45,24 @@ display: pager: type: full options: - items_per_page: '10' - offset: '0' - id: '0' + items_per_page: 10 + offset: 0 + id: 0 total_pages: '' expose: - items_per_page: '0' + items_per_page: false items_per_page_label: 'Items per page' items_per_page_options: '5, 10, 20, 40, 60' items_per_page_options_all: '0' items_per_page_options_all_label: '- All -' - offset: '0' + offset: false offset_label: Offset tags: previous: '‹ previous' next: 'next ›' first: '« first' last: 'last »' - quantity: '9' + quantity: 9 style: type: default row: @@ -76,58 +76,58 @@ display: group_type: group admin_label: '' label: Nid - exclude: '0' + exclude: false alter: - alter_text: '0' + alter_text: false text: '' - make_link: '0' + make_link: false path: '' - absolute: '0' - external: '0' - replace_spaces: '0' + absolute: false + external: false + replace_spaces: false path_case: none - trim_whitespace: '0' + trim_whitespace: false alt: '' rel: '' link_class: '' prefix: '' suffix: '' target: '' - nl2br: '0' + nl2br: false max_length: '' - word_boundary: '1' - ellipsis: '1' - more_link: '0' + word_boundary: true + ellipsis: true + more_link: false more_link_text: '' more_link_path: '' - strip_tags: '0' - trim: '0' + strip_tags: false + trim: false preserve_tags: '' - html: '0' + html: false element_type: '' element_class: '' element_label_type: '' element_label_class: '' - element_label_colon: '1' + element_label_colon: true element_wrapper_type: '' element_wrapper_class: '' - element_default_classes: '1' + element_default_classes: true empty: '' - hide_empty: '0' - empty_zero: '0' - hide_alter_empty: '1' - link_to_node: '0' + hide_empty: false + empty_zero: false + hide_alter_empty: true + link_to_node: false plugin_id: node provider: node filters: status: - value: '1' + value: true table: node_field_data field: status id: status expose: - operator: '0' - group: '1' + operator: '' + group: 1 provider: views sorts: created: @@ -138,7 +138,7 @@ display: relationship: none group_type: group admin_label: '' - exposed: '0' + exposed: false expose: label: '' granularity: second @@ -159,34 +159,34 @@ display: default_action: 'not found' exception: value: all - title_enable: '0' + title_enable: false title: All - title_enable: '0' + title_enable: false title: '' default_argument_type: fixed default_argument_options: argument: '' - default_argument_skip_url: '0' + default_argument_skip_url: false summary_options: base_path: '' - count: '1' - items_per_page: '25' - override: '0' + count: true + items_per_page: 25 + override: false summary: sort_order: asc - number_of_records: '0' + number_of_records: false format: default_summary - specify_validation: '0' + specify_validation: false validate: type: none fail: 'not found' validate_options: { } - glossary: '0' - limit: '0' + glossary: false + limit: false case: none path_case: none - transform_dash: '0' - break_phrase: '0' + transform_dash: false + break_phrase: false plugin_id: node_type provider: node label: test_node_view diff --git a/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_status_extra.yml b/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_status_extra.yml index 1944f59..ec77a6a 100644 --- a/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_status_extra.yml +++ b/core/modules/node/tests/modules/node_test_views/test_views/views.view.test_status_extra.yml @@ -9,7 +9,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm @@ -34,47 +34,47 @@ display: group_type: group admin_label: '' label: Title - exclude: '0' + exclude: false alter: - alter_text: '0' + alter_text: false text: '' - make_link: '0' + make_link: false path: '' - absolute: '0' - external: '0' - replace_spaces: '0' + absolute: false + external: false + replace_spaces: false path_case: none - trim_whitespace: '0' + trim_whitespace: false alt: '' rel: '' link_class: '' prefix: '' suffix: '' target: '' - nl2br: '0' + nl2br: false max_length: '' - word_boundary: '1' - ellipsis: '1' - more_link: '0' + word_boundary: true + ellipsis: true + more_link: false more_link_text: '' more_link_path: '' - strip_tags: '0' - trim: '0' + strip_tags: false + trim: false preserve_tags: '' - html: '0' + html: false element_type: '' element_class: '' element_label_type: '' element_label_class: '' - element_label_colon: '1' + element_label_colon: true element_wrapper_type: '' element_wrapper_class: '' - element_default_classes: '1' + element_default_classes: true empty: '' - hide_empty: '0' - empty_zero: '0' - hide_alter_empty: '1' - link_to_node: '0' + hide_empty: false + empty_zero: false + hide_alter_empty: true + link_to_node: false plugin_id: node provider: node filters: @@ -87,29 +87,29 @@ display: admin_label: '' operator: '=' value: '' - group: '1' - exposed: '0' + group: 1 + exposed: false expose: - operator_id: '0' + operator_id: 0 label: '' description: '' - use_operator: '0' + use_operator: false operator: '' identifier: '' - required: '0' - remember: '0' - multiple: '0' + required: false + remember: false + multiple: false remember_roles: authenticated: authenticated - is_grouped: '0' + is_grouped: false group_info: label: '' description: '' identifier: '' - optional: '1' + optional: true widget: select - multiple: '0' - remember: '0' + multiple: false + remember: false default_group: All default_group_multiple: { } group_items: { } @@ -133,8 +133,8 @@ display: display_plugin: page display_title: Page id: page_1 - position: '0' + position: 0 base_field: nid -status: '1' +status: true module: views langcode: und diff --git a/core/modules/number/config/schema/number.schema.yml b/core/modules/number/config/schema/number.schema.yml index f597c02..fbacd26 100644 --- a/core/modules/number/config/schema/number.schema.yml +++ b/core/modules/number/config/schema/number.schema.yml @@ -108,3 +108,61 @@ field.number_float.value: value: type: float label: 'Value' + +entity_display.field.number_decimal: + type: entity_field_display_base + label: 'Number decimal display format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + thousand_separator: + type: string + label: 'Thousand marker' + decimal_separator: + type: string + label: 'Decimal marker' + scale: + type: integer + label: 'Scale' + prefix_suffix: + type: boolean + label: 'Display prefix and suffix.' + +entity_display.field.number_integer: + type: entity_field_display_base + label: 'Number interger display format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + thousand_separator: + type: string + label: 'Thousand marker' + prefix_suffix: + type: boolean + label: 'Display prefix and suffix.' + +entity_display.field.number_unformatted: + type: entity_field_display_base + label: 'Number unformatted display format settings' + mapping: + settings: + type: sequence + label: 'Settings' + sequence: + - type: string + +entity_form_display.field.number: + type: entity_field_form_display_base + label: 'Number default display format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + placeholder: + type: label + label: 'Placeholder' diff --git a/core/modules/options/config/schema/options.schema.yml b/core/modules/options/config/schema/options.schema.yml index 367e4b5..975ab2c 100644 --- a/core/modules/options/config/schema/options.schema.yml +++ b/core/modules/options/config/schema/options.schema.yml @@ -119,3 +119,55 @@ field.list_boolean.value: value: type: boolean label: 'Value' + +entity_display.field.list_default: + type: entity_field_display_base + label: 'Options list default display settings' + mapping: + settings: + type: sequence + label: 'Settings' + sequence: + - type: string + +entity_display.field.list_key: + type: entity_field_display_base + label: 'Key format settings' + mapping: + settings: + type: sequence + label: 'Settings' + sequence: + - type: string + +entity_form_display.field.options_buttons: + type: entity_field_form_display_base + label: 'Check boxes/radio buttons format settings' + mapping: + settings: + type: sequence + label: 'Settings' + sequence: + - type: string + +entity_form_display.field.options_onoff: + type: entity_field_form_display_base + label: 'Single on/off checkbox format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + display_label: + type: boolean + label: 'Use field label instead of the "On value" as label' + +entity_form_display.field.options_select: + type: entity_field_form_display_base + label: 'Select list format settings' + mapping: + settings: + type: sequence + label: 'Settings' + sequence: + - type: string diff --git a/core/modules/picture/config/schema/picture.schema.yml b/core/modules/picture/config/schema/picture.schema.yml index 3d53c44..62e6741 100644 --- a/core/modules/picture/config/schema/picture.schema.yml +++ b/core/modules/picture/config/schema/picture.schema.yml @@ -37,3 +37,21 @@ picture.mappings.*: langcode: type: string label: 'Default language' + +entity_display.field.picture: + type: entity_field_display_base + label: 'Picture list format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + picture_mapping: + type: string + label: 'Picture mapping' + fallback_image_style: + type: string + label: 'Fallback image style' + image_link: + type: string + label: 'Link image to' diff --git a/core/modules/rest/config/schema/rest.schema.yml b/core/modules/rest/config/schema/rest.schema.yml index dff34eb..b6afddc 100644 --- a/core/modules/rest/config/schema/rest.schema.yml +++ b/core/modules/rest/config/schema/rest.schema.yml @@ -8,43 +8,38 @@ rest.settings: type: sequence label: 'Resources' sequence: - - type: sequence + - type: rest_resource label: 'Resource' - sequence: - - type: rest.resource.[%key] -rest.resource.GET: +rest_resource: type: mapping - label: 'GET method settings' mapping: - supported_format: + GET: + type: rest_request + label: 'GET method settings' + POST: + type: rest_request + label: 'POST method settings' + PATCH: + type: rest_request + label: 'PATCH method settings' + + DELETE: + type: rest_request + label: 'DELETE method settings' + +rest_request: + type: mapping + mapping: + supported_formats: type: sequence label: 'Supported format' sequence: - type: string label: 'Format' - -rest.resource.POST: - type: mapping - label: 'POST method settings' - mapping: supported_auth: type: sequence - label: 'Supported format' + label: 'Supported authentication' sequence: - type: string - label: 'Format' - -rest.resource.PATCH: - type: sequence - label: 'PATCH method settings' - sequence: - - type: string - label: 'Format' - -rest.resource.DELETE: - type: sequence - label: 'DELETE method settings' - sequence: - - type: string - label: 'Format' + label: 'Authentication' diff --git a/core/modules/rest/config/schema/rest.views.schema.yml b/core/modules/rest/config/schema/rest.views.schema.yml new file mode 100644 index 0000000..351b70d --- /dev/null +++ b/core/modules/rest/config/schema/rest.views.schema.yml @@ -0,0 +1,38 @@ +# Schema for the views plugins of the REST module. + +views.display.rest_export: + type: views_display_path + label: 'REST display options' + +views.row.data_entity: + type: views_row + label: 'Entity row' + +views.row.data_field: + type: views_row + label: 'Field row' + mapping: + field_options: + type: sequence + label: 'Options' + sequence: + - type: mapping + label: 'Row' + mapping: + alias: + type: string + label: 'Alias for ID' + raw_output: + type: boolean + label: 'Raw output for ID' + +views.style.serializer: + type: viwes_style + label: 'Serialized output format' + mapping: + formats: + type: sequence + label: 'Formats' + sequence: + - type: string + label: 'Format' diff --git a/core/modules/rest/tests/modules/rest_test_views/test_views/views.view.test_serializer_display_entity.yml b/core/modules/rest/tests/modules/rest_test_views/test_views/views.view.test_serializer_display_entity.yml index 13d90aa..98ec072 100644 --- a/core/modules/rest/tests/modules/rest_test_views/test_views/views.view.test_serializer_display_entity.yml +++ b/core/modules/rest/tests/modules/rest_test_views/test_views/views.view.test_serializer_display_entity.yml @@ -9,7 +9,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm @@ -39,12 +39,12 @@ display: display_plugin: rest_export id: rest_export_1 display_title: serializer - position: '' + position: null display_options: defaults: access: false path: test/serialize/entity base_field: id -status: '1' +status: true module: rest langcode: und diff --git a/core/modules/rest/tests/modules/rest_test_views/test_views/views.view.test_serializer_display_field.yml b/core/modules/rest/tests/modules/rest_test_views/test_views/views.view.test_serializer_display_field.yml index 029c34a..33f6c94 100644 --- a/core/modules/rest/tests/modules/rest_test_views/test_views/views.view.test_serializer_display_field.yml +++ b/core/modules/rest/tests/modules/rest_test_views/test_views/views.view.test_serializer_display_field.yml @@ -9,7 +9,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm @@ -41,9 +41,9 @@ display: group_type: group admin_label: '' label: 'Custom text' - exclude: '0' + exclude: false alter: - alter_text: '1' + alter_text: true text: TEST plugin_id: custom provider: views @@ -67,7 +67,7 @@ display: display_plugin: rest_export id: rest_export_1 display_title: serializer - position: '' + position: null display_options: defaults: access: false @@ -84,7 +84,7 @@ display: display_plugin: rest_export id: rest_export_2 display_title: 'serialize - access denied' - position: '' + position: null display_options: defaults: access: false @@ -100,6 +100,6 @@ display: row: type: data_field base_field: id -status: '1' +status: true module: rest langcode: und diff --git a/core/modules/rest/tests/modules/rest_test_views/test_views/views.view.test_serializer_node_display_field.yml b/core/modules/rest/tests/modules/rest_test_views/test_views/views.view.test_serializer_node_display_field.yml index ed46987..aa44af0 100644 --- a/core/modules/rest/tests/modules/rest_test_views/test_views/views.view.test_serializer_node_display_field.yml +++ b/core/modules/rest/tests/modules/rest_test_views/test_views/views.view.test_serializer_node_display_field.yml @@ -9,7 +9,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm @@ -40,46 +40,46 @@ display: group_type: group admin_label: '' label: Body - exclude: 0 + exclude: false alter: - alter_text: 0 + alter_text: false text: '' - make_link: 0 + make_link: false path: '' - absolute: 0 - external: 0 - replace_spaces: 0 + absolute: false + external: false + replace_spaces: false path_case: none - trim_whitespace: 0 + trim_whitespace: false alt: '' rel: '' link_class: '' prefix: '' suffix: '' target: '' - nl2br: 0 + nl2br: false max_length: '' - word_boundary: 1 - ellipsis: 1 - more_link: 0 + word_boundary: true + ellipsis: true + more_link: false more_link_text: '' more_link_path: '' - strip_tags: 0 - trim: 0 + strip_tags: false + trim: false preserve_tags: '' - html: 0 + html: false element_type: '' element_class: '' element_label_type: '' element_label_class: '' - element_label_colon: 1 + element_label_colon: true element_wrapper_type: '' element_wrapper_class: '' - element_default_classes: 1 + element_default_classes: true empty: '' - hide_empty: 0 - empty_zero: 0 - hide_alter_empty: 1 + hide_empty: false + empty_zero: false + hide_alter_empty: true click_sort_column: value type: text_default settings: { } @@ -92,7 +92,7 @@ display: delta_first_last: false multi_type: separator separator: ', ' - field_api_classes: 0 + field_api_classes: false plugin_id: field provider: field title: 'Test serialize' @@ -101,7 +101,7 @@ display: display_plugin: rest_export id: rest_export_1 display_title: serializer - position: '' + position: null display_options: defaults: access: false @@ -115,6 +115,6 @@ display: row: type: data_field base_field: nid -status: '1' +status: true module: rest_test_views langcode: und diff --git a/core/modules/search/config/entity.view_mode.node.search_index.yml b/core/modules/search/config/entity.view_mode.node.search_index.yml index 90df0bd..f0b4251 100644 --- a/core/modules/search/config/entity.view_mode.node.search_index.yml +++ b/core/modules/search/config/entity.view_mode.node.search_index.yml @@ -1,6 +1,6 @@ id: node.search_index uuid: 17b34a6b-401f-421a-8100-f1879cbc565a -label: Search index +label: 'Search index' status: false cache: true targetEntityType: node diff --git a/core/modules/search/config/entity.view_mode.node.search_result.yml b/core/modules/search/config/entity.view_mode.node.search_result.yml index cfdc1ac..fe37d00 100644 --- a/core/modules/search/config/entity.view_mode.node.search_result.yml +++ b/core/modules/search/config/entity.view_mode.node.search_result.yml @@ -1,6 +1,6 @@ id: node.search_result uuid: 095d7357-de7d-4acc-953a-585cd106e89b -label: Search result +label: 'Search result' status: false cache: true targetEntityType: node diff --git a/core/modules/search/config/schema/search.views.schema.yml b/core/modules/search/config/schema/search.views.schema.yml new file mode 100644 index 0000000..b1684c6 --- /dev/null +++ b/core/modules/search/config/schema/search.views.schema.yml @@ -0,0 +1,36 @@ +# Schema for the views plugins of the Search module. + +views.argument.search: + type: views_argument + label: 'Query key' + +views.field.search_score: + type: views.field.numeric + label: 'Search score' + mapping: + alternate_sort: + type: string + label: 'Alternative sort' + alternate_order: + type: string + label: 'Alternate sort order' + +views.filter.search: + type: views_filter + label: 'Link to node' + mapping: + operator: + type: string + label: 'On empty input' + +views.row.search_view: + type: views.field.numeric + label: 'Source link' + mapping: + score: + type: boolean + label: 'Display score' + +views.sort.search_score: + type: views_sort + label: 'Search score' diff --git a/core/modules/search/tests/modules/search_extra_type/config/schema/search_extra_type.schema.yml b/core/modules/search/tests/modules/search_extra_type/config/schema/search_extra_type.schema.yml index 9a98361..de7226e 100644 --- a/core/modules/search/tests/modules/search_extra_type/config/schema/search_extra_type.schema.yml +++ b/core/modules/search/tests/modules/search_extra_type/config/schema/search_extra_type.schema.yml @@ -1,5 +1,13 @@ # Schema for the configuration files of the Search Extra Type module. +search_extra_type.settings: + type: mapping + label: 'Test search type settings' + mapping: + boost: + type: string + label: 'String' + # Plugin \Drupal\search_extra_type\Plugin\Search\SearchExtraTypeSearch search.plugin.search_extra_type_search: type: mapping diff --git a/core/modules/simpletest/config/simpletest.settings.yml b/core/modules/simpletest/config/simpletest.settings.yml index 52b2d3d..a2254cc 100644 --- a/core/modules/simpletest/config/simpletest.settings.yml +++ b/core/modules/simpletest/config/simpletest.settings.yml @@ -1,6 +1,6 @@ -clear_results: '1' +clear_results: true httpauth: - method: '1' + method: 1 password: '' username: '' -verbose: '1' +verbose: true diff --git a/core/modules/statistics/tests/modules/statistics_test_views/test_views/views.view.test_statistics_integration.yml b/core/modules/statistics/tests/modules/statistics_test_views/test_views/views.view.test_statistics_integration.yml index a35c77d..a666e27 100644 --- a/core/modules/statistics/tests/modules/statistics_test_views/test_views/views.view.test_statistics_integration.yml +++ b/core/modules/statistics/tests/modules/statistics_test_views/test_views/views.view.test_statistics_integration.yml @@ -9,7 +9,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm @@ -151,7 +151,7 @@ display: decimal: . separator: '' format_plural: false - format_plural_singular: true + format_plural_singular: '1' format_plural_plural: '@count' prefix: '' suffix: '' @@ -209,7 +209,7 @@ display: decimal: . separator: '' format_plural: false - format_plural_singular: true + format_plural_singular: '1' format_plural_plural: '@count' prefix: '' suffix: '' @@ -235,7 +235,7 @@ display: display_plugin: page id: page_1 display_title: Page - position: '' + position: null display_options: path: test_statistics_integration label: 'Test statistics integration' diff --git a/core/modules/system/config/schema/system.data_types.schema.yml b/core/modules/system/config/schema/system.data_types.schema.yml index ab375b6..2c9d83c 100644 --- a/core/modules/system/config/schema/system.data_types.schema.yml +++ b/core/modules/system/config/schema/system.data_types.schema.yml @@ -78,9 +78,46 @@ filter: type: mapping label: 'Filter' mapping: - module: + id: type: string - label: 'Module' + label: 'ID' + provider: + type: string + label: 'Provider' status: type: boolean - label: 'Enabled' + label: 'Status' + weight: + type: integer + label: 'Weight' + settings: + type: filter_settings.[%parent.id] + + +# System action configuration base. +action_configuration_default: + type: sequence + label: 'Action configuration' + sequence: + - type: string + +theme_settings_default: + type: mapping + mapping: + shortcut_module_link: + type: boolean + label: 'Shortcut module link' + +theme_breakpoints_default: + type: sequence + sequence: + - type: string + label: 'Breakpoint value' + +views_field_bulk_form: + type: views_field + label: 'Bulk operation' + mapping: + action_title: + type: label + label: 'Action title' diff --git a/core/modules/system/config/schema/system.schema.yml b/core/modules/system/config/schema/system.schema.yml index 9acf83d..d77bb95 100644 --- a/core/modules/system/config/schema/system.schema.yml +++ b/core/modules/system/config/schema/system.schema.yml @@ -208,7 +208,7 @@ system.performance: mapping: use_internal: type: boolean - label: 'Cache pages for anonymous users' + label: 'Use internal page cache' max_age: type: integer label: 'Max age of page cache' @@ -295,8 +295,8 @@ system.theme: type: sequence label: 'Enabled themes' sequence: - - type: string - label: 'Theme' + - type: integer + label: 'Weight' default: type: string label: 'Default theme' @@ -326,3 +326,163 @@ system.menu.*: status: type: boolean label: '' + +system.action.*: + type: mapping + label: 'System action' + mapping: + id: + type: string + label: 'ID' + uuid: + type: string + label: 'UUID' + label: + type: label + label: 'Label' + status: + type: boolean + label: 'Status' + langcode: + type: string + label: 'Default language' + type: + type: string + label: 'Type' + plugin: + type: string + label: 'Plugin' + configuration: + type: action.configuration.[plugin] + +system.file: + type: mapping + label: 'File system' + mapping: + allow_insecure_uploads: + type: boolean + label: 'Allow insecure uploads' + default_scheme: + type: string + label: 'Default download method' + path: + type: mapping + label: 'Path settings' + mapping: + private: + type: string + label: 'Private file system path' + temporary: + type: string + label: 'Temporary directory' + +system.image: + type: mapping + label: 'Image settings' + mapping: + toolkit: + type: string + label: 'Toolkit' + +system.image.gd: + type: mapping + label: 'Image settings' + mapping: + jpeg_quality: + type: integer + label: 'JPEG quality' + +system.mail: + type: mapping + label: 'Image settings' + mapping: + interface: + type: mapping + label: 'Interface' + mapping: + default: + type: string + label: 'Default' + +system.module: + type: mapping + label: 'Module settings' + mapping: + enabled: + type: sequence + label: 'Enabled modules' + sequence: + - type: integer + label: 'Weight' + +system.theme.global: + type: mapping + label: 'Theme global settings' + mapping: + favicon: + type: mapping + label: 'Shortcut icon settings' + mapping: + mimetype: + type: string + label: 'MIME type' + path: + type: string + label: 'Path' + url: + type: string + label: 'URL' + use_default: + type: boolean + label: 'Use the default shortcut icon supplied by the theme' + features: + type: mapping + label: 'Shortcut icon settings' + mapping: + comment_user_picture: + type: boolean + label: 'User pictures in comments' + comment_user_verification: + type: boolean + label: 'User verification status in comments' + favicon: + type: boolean + label: 'Shortcut icon' + logo: + type: boolean + label: 'Logo' + name: + type: boolean + label: 'Site name' + node_user_picture: + type: boolean + label: 'User pictures in posts' + main_menu: + type: boolean + label: 'Main menu' + secondary_menu: + type: boolean + label: 'Secondary menu' + slogan: + type: boolean + label: 'Site slogan' + logo: + type: mapping + label: 'Shortcut icon settings' + mapping: + path: + type: string + label: 'Logo path' + url: + type: uri + label: 'URL' + use_default: + type: boolean + label: 'Use default' + +system.theme.disabled: + type: sequence + label: 'Disabled themes' + sequence: + - type: string + label: 'Theme' \ No newline at end of file diff --git a/core/modules/system/config/system.date.yml b/core/modules/system/config/system.date.yml index 29889df..6470af2 100644 --- a/core/modules/system/config/system.date.yml +++ b/core/modules/system/config/system.date.yml @@ -4,6 +4,6 @@ first_day: 0 timezone: default: '' user: - configurable: '1' - warn: '0' - default: '0' + configurable: true + warn: false + default: 0 diff --git a/core/modules/system/config/system.file.yml b/core/modules/system/config/system.file.yml index eefee01..35ff1ec 100644 --- a/core/modules/system/config/system.file.yml +++ b/core/modules/system/config/system.file.yml @@ -1,4 +1,4 @@ -allow_insecure_uploads: '0' +allow_insecure_uploads: false default_scheme: 'public' path: private: '' diff --git a/core/modules/system/config/system.image.gd.yml b/core/modules/system/config/system.image.gd.yml index fbc379f..342e071 100644 --- a/core/modules/system/config/system.image.gd.yml +++ b/core/modules/system/config/system.image.gd.yml @@ -1 +1 @@ -jpeg_quality: '75' +jpeg_quality: 75 diff --git a/core/modules/system/config/system.menu.account.yml b/core/modules/system/config/system.menu.account.yml index 084a601..7d4cdd0 100644 --- a/core/modules/system/config/system.menu.account.yml +++ b/core/modules/system/config/system.menu.account.yml @@ -2,4 +2,4 @@ id: account label: 'User account menu' description: 'Links related to the user account.' langcode: en -locked: 1 +locked: true diff --git a/core/modules/system/config/system.menu.admin.yml b/core/modules/system/config/system.menu.admin.yml index f9a1441..4751eb1 100644 --- a/core/modules/system/config/system.menu.admin.yml +++ b/core/modules/system/config/system.menu.admin.yml @@ -2,4 +2,4 @@ id: admin label: Administration description: 'Contains links to administrative tasks.' langcode: en -locked: 1 +locked: true diff --git a/core/modules/system/config/system.menu.footer.yml b/core/modules/system/config/system.menu.footer.yml index 5fe060c..540c118 100644 --- a/core/modules/system/config/system.menu.footer.yml +++ b/core/modules/system/config/system.menu.footer.yml @@ -2,4 +2,4 @@ id: footer label: Footer description: 'Use this for linking to site information.' langcode: en -locked: 1 +locked: true diff --git a/core/modules/system/config/system.menu.main.yml b/core/modules/system/config/system.menu.main.yml index d4fecc7..fe9ced5 100644 --- a/core/modules/system/config/system.menu.main.yml +++ b/core/modules/system/config/system.menu.main.yml @@ -2,4 +2,4 @@ id: main label: 'Main navigation' description: 'Use this for linking to the main site sections.' langcode: en -locked: 1 +locked: true diff --git a/core/modules/system/config/system.menu.tools.yml b/core/modules/system/config/system.menu.tools.yml index c81e9c5..4a3084f 100644 --- a/core/modules/system/config/system.menu.tools.yml +++ b/core/modules/system/config/system.menu.tools.yml @@ -2,4 +2,4 @@ id: tools label: Tools description: 'Contains links for site visitors. Some modules add their links here.' langcode: en -locked: 1 +locked: true diff --git a/core/modules/system/config/system.module.yml b/core/modules/system/config/system.module.yml index 696bedc..9ec80e1 100644 --- a/core/modules/system/config/system.module.yml +++ b/core/modules/system/config/system.module.yml @@ -1,2 +1,2 @@ enabled: - system: '0' + system: 0 diff --git a/core/modules/system/config/system.performance.yml b/core/modules/system/config/system.performance.yml index 67e82cf..29b434b 100644 --- a/core/modules/system/config/system.performance.yml +++ b/core/modules/system/config/system.performance.yml @@ -1,12 +1,12 @@ cache: page: - use_internal: '0' + use_internal: false max_age: 0 css: preprocess: false gzip: true fast_404: - enabled: '1' + enabled: true paths: '/\.(?:txt|png|gif|jpe?g|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp)$/i' exclude_paths: '/\/(?:styles|imagecache)\//' html: '
The requested URL "@path" was not found on this server.
' diff --git a/core/modules/system/config/system.theme.global.yml b/core/modules/system/config/system.theme.global.yml index 2d5bc35..13036bf 100644 --- a/core/modules/system/config/system.theme.global.yml +++ b/core/modules/system/config/system.theme.global.yml @@ -2,18 +2,18 @@ favicon: mimetype: image/vnd.microsoft.icon path: '' url: '' - use_default: '1' + use_default: true features: - comment_user_picture: '1' - comment_user_verification: '1' - favicon: '1' - logo: '1' - name: '1' - node_user_picture: '1' - main_menu: '1' - secondary_menu: '1' - slogan: '1' + comment_user_picture: true + comment_user_verification: true + favicon: true + logo: true + name: true + node_user_picture: true + main_menu: true + secondary_menu: true + slogan: true logo: path: '' url: '' - use_default: '1' + use_default: true diff --git a/core/modules/system/config/system.theme.yml b/core/modules/system/config/system.theme.yml index c56c7f2..e88d701 100644 --- a/core/modules/system/config/system.theme.yml +++ b/core/modules/system/config/system.theme.yml @@ -1,4 +1,4 @@ -admin: '0' +admin: '' enabled: - stark: '0' + stark: 0 default: stark diff --git a/core/modules/system/lib/Drupal/system/Tests/File/FileTestBase.php b/core/modules/system/lib/Drupal/system/Tests/File/FileTestBase.php index 540c19a..30973ad 100644 --- a/core/modules/system/lib/Drupal/system/Tests/File/FileTestBase.php +++ b/core/modules/system/lib/Drupal/system/Tests/File/FileTestBase.php @@ -82,11 +82,6 @@ function assertSameFile(FileInterface $file1, FileInterface $file2) { * Optional message. */ function assertFilePermissions($filepath, $expected_mode, $message = NULL) { - // Configuration system stores default modes as strings. - if (is_string($expected_mode)) { - // Convert string to octal. - $expected_mode = octdec($expected_mode); - } // Clear out PHP's file stat cache to be sure we see the current value. clearstatcache(TRUE, $filepath); @@ -122,11 +117,6 @@ function assertFilePermissions($filepath, $expected_mode, $message = NULL) { * Optional message. */ function assertDirectoryPermissions($directory, $expected_mode, $message = NULL) { - // Configuration system stores default modes as strings. - if (is_string($expected_mode)) { - // Convert string to octal. - $expected_mode = octdec($expected_mode); - } // Clear out PHP's file stat cache to be sure we see the current value. clearstatcache(TRUE, $directory); diff --git a/core/modules/system/tests/modules/config_upgrade/config/schema/config_upgrade.schema.yml b/core/modules/system/tests/modules/config_upgrade/config/schema/config_upgrade.schema.yml new file mode 100644 index 0000000..adb743f --- /dev/null +++ b/core/modules/system/tests/modules/config_upgrade/config/schema/config_upgrade.schema.yml @@ -0,0 +1,29 @@ +# Schema for the configuration files of the Config Upgrade Test module. + +config_upgrade.test: + type: mapping + label: 'Config upgrade test' + mapping: + parent: + type: mapping + label: 'Parent' + mapping: + bar: + type: string + label: 'Bar' + baz: + type: string + label: 'Baz' + foo: + type: string + label: 'Foo' + numeric_keys: + type: mapping + label: 'Numeric keys' + mapping: + '404': + type: string + label: '404' + '403': + type: string + label: '403' diff --git a/core/modules/system/tests/modules/entity_test/config/entity.view_mode.entity_test.full.yml b/core/modules/system/tests/modules/entity_test/config/entity.view_mode.entity_test.full.yml index cb44396..412942c 100644 --- a/core/modules/system/tests/modules/entity_test/config/entity.view_mode.entity_test.full.yml +++ b/core/modules/system/tests/modules/entity_test/config/entity.view_mode.entity_test.full.yml @@ -1,5 +1,5 @@ id: entity_test.full label: Full -status: '0' -cache: '1' +status: false +cache: true targetEntityType: entity_test diff --git a/core/modules/system/tests/modules/entity_test/config/entity.view_mode.entity_test.test.yml b/core/modules/system/tests/modules/entity_test/config/entity.view_mode.entity_test.test.yml index aa9b27e..baeed36 100644 --- a/core/modules/system/tests/modules/entity_test/config/entity.view_mode.entity_test.test.yml +++ b/core/modules/system/tests/modules/entity_test/config/entity.view_mode.entity_test.test.yml @@ -1,5 +1,5 @@ id: entity_test.test label: Test -status: '0' -cache: '0' +status: false +cache: false targetEntityType: entity_test diff --git a/core/modules/system/tests/modules/image_test/config/schema/image_test.schema.yml b/core/modules/system/tests/modules/image_test/config/schema/image_test.schema.yml new file mode 100644 index 0000000..ba8ff4c --- /dev/null +++ b/core/modules/system/tests/modules/image_test/config/schema/image_test.schema.yml @@ -0,0 +1,9 @@ +# Schema for the configuration files of the Image Test module. + +system.image.test_toolkit: + type: mapping + label: 'Image test toolkit' + mapping: + test_parameter: + type: integer + label: 'Test parameter' diff --git a/core/modules/system/tests/modules/menu_test/config/schema/menu_test.schema.yml b/core/modules/system/tests/modules/menu_test/config/schema/menu_test.schema.yml new file mode 100644 index 0000000..96a4bcf --- /dev/null +++ b/core/modules/system/tests/modules/menu_test/config/schema/menu_test.schema.yml @@ -0,0 +1,9 @@ +# Schema for the configuration files of the Hook Menu Test module. + +menu_test.menu_item: + type: mapping + label: 'Menu test' + mapping: + title: + type: label + label: 'Title' diff --git a/core/modules/system/tests/modules/update_script_test/config/schema/update_script_test.schema.yml b/core/modules/system/tests/modules/update_script_test/config/schema/update_script_test.schema.yml new file mode 100644 index 0000000..6efa594 --- /dev/null +++ b/core/modules/system/tests/modules/update_script_test/config/schema/update_script_test.schema.yml @@ -0,0 +1,10 @@ +# Schema for the configuration files of the Update Script Test module. + +update_script_test.settings: + type: mapping + label: '' + mapping: + requirement_type: + type: integer + label: 'Requirement type' + diff --git a/core/modules/system/tests/modules/update_script_test/config/update_script_test.settings.yml b/core/modules/system/tests/modules/update_script_test/config/update_script_test.settings.yml index e0be69e..0c4e667 100644 --- a/core/modules/system/tests/modules/update_script_test/config/update_script_test.settings.yml +++ b/core/modules/system/tests/modules/update_script_test/config/update_script_test.settings.yml @@ -1 +1 @@ -requirement_type: '0' +requirement_type: 0 diff --git a/core/modules/taxonomy/config/entity.view_mode.taxonomy_term.full.yml b/core/modules/taxonomy/config/entity.view_mode.taxonomy_term.full.yml index 3ab1f25..10c90b1 100644 --- a/core/modules/taxonomy/config/entity.view_mode.taxonomy_term.full.yml +++ b/core/modules/taxonomy/config/entity.view_mode.taxonomy_term.full.yml @@ -1,6 +1,6 @@ id: taxonomy_term.full uuid: dd617891-9328-496b-9500-b989ad5424f7 -label: Taxonomy term page -status: '0' -cache: '1' +label: 'Taxonomy term page' +status: false +cache: true targetEntityType: taxonomy_term diff --git a/core/modules/taxonomy/config/schema/taxonomy.schema.yml b/core/modules/taxonomy/config/schema/taxonomy.schema.yml index 9170280..6c0cc45 100644 --- a/core/modules/taxonomy/config/schema/taxonomy.schema.yml +++ b/core/modules/taxonomy/config/schema/taxonomy.schema.yml @@ -61,7 +61,7 @@ field.taxonomy_term_reference.settings: type: string label: 'Vocabulary' parent: - type: string + type: integer value: 'Parent' field.taxonomy_term_reference.instance_settings: @@ -82,3 +82,42 @@ field.taxonomy_term_reference.value: type: integer label: 'Term ID' +entity_display.field.entity_reference_rss_category: + type: entity_field_display_base + label: 'Taxonomy format settings' + +entity_display.field.taxonomy_term_reference_plain: + type: entity_field_display_base + label: 'Taxonomy format settings' + +entity_display.field.taxonomy_term_reference_rss_category: + type: entity_field_display_base + label: 'Taxonomy format settings' + +entity_display.field.taxonomy_term_reference_link: + type: entity_field_display_base + label: 'Taxonomy format settings' + mapping: + settings: + type: sequence + label: 'Settings' + sequence: + - type: string + +entity_form_display.field.taxonomy_autocomplete: + type: entity_field_form_display_base + label: 'Autocomplete term widget (tagging) format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + size: + type: integer + label: 'Size' + autocomplete_route_name: + type: string + label: 'Autocomplete route name' + placeholder: + type: label + label: 'Placeholder' diff --git a/core/modules/taxonomy/config/schema/taxonomy.views.schema.yml b/core/modules/taxonomy/config/schema/taxonomy.views.schema.yml new file mode 100644 index 0000000..1de5e1e --- /dev/null +++ b/core/modules/taxonomy/config/schema/taxonomy.views.schema.yml @@ -0,0 +1,198 @@ +# Schema for the views plugins of the Taxonomy module. + +views.argument.taxonomy_index_tid: + type: views_argument + label: 'Taxonomy term ID' + mapping: + break_phrase: + type: boolean + label: 'Allow multiple values' + add_table: + type: boolean + label: 'Allow multiple filter values to work together' + require_value: + type: boolean + label: 'Do not display items with no value in summary' + +views.argument.taxonomy_index_tid_depth: + type: views_argument + label: 'Taxonomy term ID' + mapping: + depth: + type: integer + label: 'Depth' + break_phrase: + type: boolean + label: 'Allow multiple values' + use_taxonomy_term_path: + type: boolean + label: 'Use taxonomy term path' + +views.argument.taxonomy_index_tid_depth_modifier: + type: views_argument + label: 'Taxonomy depth modifier' + +views.argument.taxonomy: + type: views_argument + label: 'Taxonomy' + mapping: + break_phrase: + type: boolean + label: 'Allow multiple values' + not: + type: boolean + label: 'Exclude' + +views.argument.vocabulary_vid: + type: views_argument + label: 'Vocabulary' + mapping: + break_phrase: + type: boolean + label: 'Allow multiple values' + not: + type: boolean + label: 'Exclude' + + +"views.argument_validator.entity:taxonomy_term": + type: views.argument_validator_entity + label: 'Taxonomy term' + +views.argument_validator.taxonomy_term_name: + type: views.argument_validator_entity + label: 'Taxonomy term' + mapping: + vids: + type: sequence + label: 'Vocabularies' + sequence: + - type: string + label: 'Vocabulary' + +views.argument_default.taxonomy_tid: + type: mapping + label: 'Taxonomy term ID from URL' + mapping: + term_page: + type: string + label: 'Load default filter from term page' + node: + type: boolean + label: 'Load default filter from node page, that''s good for related taxonomy blocks' + limit: + type: boolean + label: 'Limit terms by vocabulary' + vids: + type: sequence + label: 'Vocabularies' + sequence: + - type: string + label: 'Vocabulary' + +views.field.taxonomy_term_language: + type: views_field + label: 'Taxonomy language' + mapping: + link_to_taxonomy: + type: boolean + label: 'Link this field to its taxonomy term page' + convert_spaces: + type: boolean + label: 'Convert spaces in term names to hyphens' + +views.field.term_link_edit: + type: views_field + label: 'Taxonomy language' + mapping: + text: + type: label + label: 'Text to display' + +views.field.taxonomy: + type: views_field + label: 'Taxonomy language' + mapping: + link_to_taxonomy: + type: boolean + label: 'Link this field to its taxonomy term page' + convert_spaces: + type: boolean + label: 'Convert spaces in term names to hyphens' + + +views.field.taxonomy_index_tid: + type: views_field + label: 'Taxonomy language' + mapping: + type: + type: string + label: 'Display type' + separator: + type: string + label: 'Separator' + link_to_taxonomy: + type: boolean + label: 'Link this field to its term page' + limit: + type: boolean + label: 'Limit terms by vocabulary' + vids: + type: sequence + label: 'Vocabularies' + sequence: + - type: string + label: 'Vocabulary' + +views.filter.taxonomy_index_tid: + type: views.filter.in_operator + label: 'Taxonomy term ID' + mapping: + operator: + type: string + label: 'Operator' + value: + type: sequence + label: 'Values' + sequence: + - type: string + label: 'Value' + vid: + type: string + label: 'Vocabulary' + type: + type: string + label: 'Selection type' + hierarchy: + type: boolean + label: 'Show hierarchy in dropdown' + +views.filter.taxonomy_index_tid_depth: + type: views.filter.in_operator + label: 'Taxonomy term ID with depth' + mapping: + operator: + type: string + label: 'Operator' + value: + type: sequence + label: 'Values' + sequence: + - type: string + label: 'Value' + vid: + type: string + label: 'Vocabulary' + type: + type: string + label: 'Selection type' + hierarchy: + type: boolean + label: 'Show hierarchy in dropdown' + depth: + type: integer + label: 'Depth' + +views.relationship.node_term_data: + type: views_relationship + label: 'Taxonomy term' diff --git a/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_filter_taxonomy_index_tid.yml b/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_filter_taxonomy_index_tid.yml index d14ecff..0914a5f 100644 --- a/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_filter_taxonomy_index_tid.yml +++ b/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_filter_taxonomy_index_tid.yml @@ -2,13 +2,13 @@ base_field: nid base_table: node core: 8.x description: '' -status: '1' +status: true display: default: display_plugin: default id: default display_title: Master - position: '1' + position: 1 display_options: access: type: perm @@ -20,57 +20,57 @@ display: query: type: views_query options: - disable_sql_rewrite: '0' - distinct: '0' - slave: '0' + disable_sql_rewrite: false + distinct: false + slave: false query_comment: '' query_tags: { } exposed_form: type: basic options: submit_button: Apply - reset_button: '0' + reset_button: false reset_button_label: Reset exposed_sorts_label: 'Sort by' - expose_sort_order: '1' + expose_sort_order: true sort_asc_label: Asc sort_desc_label: Desc pager: type: full options: - items_per_page: '10' - offset: '0' - id: '0' + items_per_page: 10 + offset: 0 + id: 0 total_pages: '' expose: - items_per_page: '0' + items_per_page: false items_per_page_label: 'Items per page' items_per_page_options: '5, 10, 20, 40, 60' - items_per_page_options_all: '0' + items_per_page_options_all: false items_per_page_options_all_label: '- All -' - offset: '0' + offset: 0 offset_label: Offset tags: previous: '‹ previous' next: 'next ›' first: '« first' last: 'last »' - quantity: '9' + quantity: 9 style: type: default options: grouping: { } row_class: '' - default_row_class: '1' - row_class_special: '1' - uses_fields: '0' + default_row_class: true + row_class_special: true + uses_fields: false row: type: fields options: inline: { } separator: '' - hide_empty: '0' - default_field_elements: '1' + hide_empty: false + default_field_elements: true fields: title: id: title @@ -79,34 +79,34 @@ display: provider: node label: '' alter: - alter_text: '0' - make_link: '0' - absolute: '0' - trim: '0' - word_boundary: '0' - ellipsis: '0' - strip_tags: '0' - html: '0' - hide_empty: '0' - empty_zero: '0' - link_to_node: '1' + alter_text: false + make_link: false + absolute: false + trim: false + word_boundary: false + ellipsis: false + strip_tags: false + html: false + hide_empty: false + empty_zero: false + link_to_node: true relationship: none group_type: group admin_label: '' - exclude: '0' + exclude: false element_type: '' element_class: '' element_label_type: '' element_label_class: '' - element_label_colon: '1' + element_label_colon: true element_wrapper_type: '' element_wrapper_class: '' - element_default_classes: '1' + element_default_classes: true empty: '' - hide_alter_empty: '1' + hide_alter_empty: true filters: status: - value: '1' + value: true table: node_field_data field: status provider: node @@ -123,40 +123,40 @@ display: admin_label: '' operator: or value: - 2: '2' - group: '1' - exposed: '0' + 2: 2 + group: 1 + exposed: false expose: - operator_id: '0' + operator_id: 0 label: '' description: '' - use_operator: '0' + use_operator: false operator: '' identifier: '' - required: '0' - remember: '0' - multiple: '0' + required: false + remember: false + multiple: false remember_roles: authenticated: authenticated - reduce: '0' - is_grouped: '0' + reduce: false + is_grouped: false group_info: label: '' description: '' identifier: '' - optional: '1' + optional: true widget: select - multiple: '0' - remember: '0' + multiple: false + remember: false default_group: All default_group_multiple: { } group_items: { } - reduce_duplicates: '0' + reduce_duplicates: false type: select - limit: '1' + limit: true vid: tags - hierarchy: '1' - error_message: '1' + hierarchy: true + error_message: true plugin_id: taxonomy_index_tid provider: taxonomy sorts: { } diff --git a/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_groupwise_term.yml b/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_groupwise_term.yml index 957f2b2..2dc1c2b 100644 --- a/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_groupwise_term.yml +++ b/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_groupwise_term.yml @@ -2,7 +2,7 @@ base_field: tid base_table: taxonomy_term_data core: 8.0-dev description: '' -status: '1' +status: true display: default: display_options: @@ -28,7 +28,7 @@ display: provider: node pager: options: - items_per_page: '10' + items_per_page: 10 type: full query: type: views_query @@ -40,10 +40,10 @@ display: id: tid_representative label: 'Representative node' relationship: none - required: '0' + required: false subquery_namespace: '' subquery_order: DESC - subquery_regenerate: '1' + subquery_regenerate: true subquery_sort: node.nid subquery_view: '' table: taxonomy_term_data diff --git a/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_taxonomy_node_term_data.yml b/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_taxonomy_node_term_data.yml index 2aebe47..a3fc3ca 100644 --- a/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_taxonomy_node_term_data.yml +++ b/core/modules/taxonomy/tests/modules/taxonomy_test_views/test_views/views.view.test_taxonomy_node_term_data.yml @@ -1,7 +1,7 @@ base_table: node core: '8' description: '' -status: '1' +status: true display: default: display_options: @@ -15,9 +15,9 @@ display: relationship: term_node_tid summary: format: default_summary - number_of_records: '0' + number_of_records: 0 summary_options: - items_per_page: '25' + items_per_page: 25 table: taxonomy_term_data plugin_id: taxonomy provider: taxonomy @@ -28,9 +28,9 @@ display: relationship: term_node_tid_1 summary: format: default_summary - number_of_records: '0' + number_of_records: 0 summary_options: - items_per_page: '25' + items_per_page: 25 table: taxonomy_term_data plugin_id: taxonomy provider: taxonomy @@ -49,7 +49,7 @@ display: label: 'Term #1' table: node vocabularies: - tags: '0' + tags: false plugin_id: node_term_data provider: taxonomy term_node_tid_1: @@ -58,7 +58,7 @@ display: label: 'Term #2' table: node vocabularies: - tags: '0' + tags: false plugin_id: node_term_data provider: taxonomy sorts: @@ -76,7 +76,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: test_taxonomy_node_term_data id: test_taxonomy_node_term_data tag: '' diff --git a/core/modules/telephone/config/schema/telephone.schema.yml b/core/modules/telephone/config/schema/telephone.schema.yml new file mode 100644 index 0000000..586b1e7 --- /dev/null +++ b/core/modules/telephone/config/schema/telephone.schema.yml @@ -0,0 +1,25 @@ +# Schema for the configuration files of the Telephone module. + +entity_display.field.telephone_link: + type: entity_field_display_base + label: 'Telephone link format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + title: + type: label + label: 'Title to replace basic numeric telephone number display.' + +entity_form_display.field.telephone_default: + type: entity_field_form_display_base + label: 'Telephone default format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + placeholder: + type: label + label: 'Placeholder' diff --git a/core/modules/text/config/schema/text.schema.yml b/core/modules/text/config/schema/text.schema.yml index c15ceed..c0ec52b 100644 --- a/core/modules/text/config/schema/text.schema.yml +++ b/core/modules/text/config/schema/text.schema.yml @@ -21,7 +21,7 @@ field.text.instance_settings: label: 'Text settings' mapping: text_processing: - type: string + type: integer label: 'Text processing' field.text.value: @@ -99,3 +99,95 @@ field.text_with_summary.value: format: type: string label: 'Text format' + +entity_display.field.text_default: + type: entity_field_display_base + label: 'Text default display format settings' + mapping: + settings: + type: sequence + label: 'Settings' + sequence: + - type: string + +entity_display.field.text_plain: + type: entity_field_display_base + label: 'Plain text display format settings' + mapping: + settings: + type: sequence + label: 'Settings' + sequence: + - type: string + +entity_display.field.text_summary_or_trimmed: + type: entity_field_display_base + label: 'Summary or trimmed text display format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + trim_length: + type: integer + label: 'Trim length' + +entity_display.field.text_trimmed: + type: entity_field_display_base + label: 'Trimmed text display format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + trim_length: + type: integer + label: 'Trim length' + +entity_form_display.field.text_textarea: + type: entity_field_form_display_base + label: 'Text area (multiple rows) display format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + rows: + type: integer + label: 'Rows' + placeholder: + type: label + label: 'Placeholder' + +entity_form_display.field.text_textarea_with_summary: + type: entity_field_form_display_base + label: 'Text area with a summary display format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + rows: + type: integer + label: 'Rows' + summary_rows: + type: integer + label: 'Number of summary rows' + placeholder: + type: label + label: 'Placeholder' + +entity_form_display.field.text_textfield: + type: entity_field_form_display_base + label: 'Text field display format settings' + mapping: + settings: + type: mapping + label: 'Settings' + mapping: + size: + type: integer + label: 'Size of textfield' + placeholder: + type: label + label: 'Placeholder' diff --git a/core/modules/tour/tests/tour_test/config/tour.tour.tour-test-2.yml b/core/modules/tour/tests/tour_test/config/tour.tour.tour-test-2.yml index 62e5ae8..7c8e098 100644 --- a/core/modules/tour/tests/tour_test/config/tour.tour.tour-test-2.yml +++ b/core/modules/tour/tests/tour_test/config/tour.tour.tour-test-2.yml @@ -1,6 +1,6 @@ id: tour-test-2 module: tour_test -label: Tour test english +label: 'Tour test english' langcode: en paths: - tour-test-2/* @@ -8,8 +8,8 @@ tips: tour-test-2: id: tour-test-2 plugin: text - label: The quick brown fox - body: Per lo più in pianura. - weight: "2" + label: 'The quick brown fox' + body: 'Per lo più in pianura.' + weight: 2 attributes: data-id: tour-test-2 diff --git a/core/modules/tour/tests/tour_test/config/tour.tour.tour-test.yml b/core/modules/tour/tests/tour_test/config/tour.tour.tour-test.yml index 3fa6d5c..7745167 100644 --- a/core/modules/tour/tests/tour_test/config/tour.tour.tour-test.yml +++ b/core/modules/tour/tests/tour_test/config/tour.tour.tour-test.yml @@ -1,6 +1,6 @@ id: tour-test module: tour_test -label: Tour test english +label: 'Tour test english' langcode: en paths: - tour-test-1 @@ -8,32 +8,32 @@ tips: tour-test-1: id: tour-test-1 plugin: text - label: The first tip - body: Is [site:name] always the best dressed? - weight: "1" + label: 'The first tip' + body: 'Is [site:name] always the best dressed?' + weight: 1 attributes: data-id: tour-test-1 tour-test-action: id: tour-test-3 plugin: text - label: The action - body: The action button of awesome - weight: "2" + label: 'The action' + body: 'The action button of awesome' + weight: 2 attributes: data-class: button-action tour-test-3: id: tour-test-3 plugin: image - label: The awesome image - url: http://local/image.png - weight: "1" + label: 'The awesome image' + url: 'http://local/image.png' + weight: 1 attributes: data-id: tour-test-3 tour-test-6: id: tour-test-6 plugin: text - label: Im a list - body:Im all these things:
Im all these things: