From aa03c3dd54458cb8bb848f01059dec9e021d018e Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org> Date: Thu, 30 Jan 2014 12:04:18 +0000 Subject: [PATCH] Issue #2167623 by danilenko_dn, sidharthap, Nitesh Sethia, krishnan.n, aitiba, alexpott, ashwinikumar, Barrett, damiankloip, deepakaryan1988, foxtrotcharlie, ianthomas_uk, neetu morwani, nonsie, piyuesh23, Sharique, sivaji, sushantpaste, swentel, vijaycs85, YesCT: Add test for all default configuration to ensure schema exists and is correct. --- core/lib/Drupal/Core/Config/Config.php | 4 +- .../Config/Schema/core.data_types.schema.yml | 43 ++- .../UnsupportedConfigDataTypeException.php | 14 + .../action/config/schema/action.schema.yml | 31 ++ .../config/schema/action.views.schema.yml | 3 + .../config/schema/views.field.schema.yml | 7 - .../config/views.view.test_bulk_form.yml | 92 +++--- .../config/schema/aggregator.views.schema.yml | 29 ++ .../config/views.view.aggregator_rss_feed.yml | 11 +- .../config/schema/aggregator_test.schema.yml | 13 + .../views.view.test_aggregator_items.yml | 117 +++---- .../config/schema/block.views.schema.yml | 22 ++ .../config/block.block.test_block.yml | 8 +- .../test_views/views.view.test_view_block.yml | 4 +- .../views.view.test_view_block2.yml | 8 +- core/modules/book/config/node.type.book.yml | 8 +- .../config/schema/breakpoint.schema.yml | 4 +- .../config/entity.view_mode.comment.full.yml | 2 +- .../comment/config/schema/comment.schema.yml | 44 +++ .../config/schema/comment.views.schema.yml | 136 ++++++++ .../config/views.view.comments_recent.yml | 8 +- .../views.view.test_comment_row.yml | 91 +++--- .../views.view.test_comment_rss.yml | 44 +-- .../views.view.test_comment_user_uid.yml | 16 +- .../Drupal/config/Tests/ConfigSchemaTest.php | 8 +- .../Drupal/config/Tests/DefaultConfigTest.php | 185 +++++++++++ .../schema/config_integration_test.schema.yml | 9 + .../config_test.dynamic.other_module.yml | 4 +- .../config_test.someschema.with_parents.yml | 6 +- .../config/config_test.someschema.yml | 6 +- .../config/schema/config_test.schema.yml | 100 ++++-- .../Drupal/config_test/TestInstallStorage.php | 32 ++ .../Drupal/config_test/TestSchemaStorage.php | 40 +++ .../config_test_invalid_name.schema.yml | 9 + .../config/schema/contact.views.schema.yml | 5 + .../views.view.test_contact_link.yml | 2 +- .../content_translation.views.schema.yml | 9 + ...ews.view.test_entity_translations_link.yml | 4 +- .../config/schema/contextual.views.schema.yml | 15 + .../config/schema/datetime.schema.yml | 50 +++ .../config/schema/dblog.views.schema.yml | 13 + .../test_views/views.view.test_dblog.yml | 4 +- .../config/schema/entity.data_types.yml | 26 ++ .../entity/config/schema/entity.schema.yml | 88 +++++ .../config/schema/entity_reference.schema.yml | 79 +++++ .../schema/entity_reference.views.schema.yml | 20 ++ .../views.view.test_entity_reference.yml | 87 +++-- .../field/config/schema/field.schema.yml | 37 +++ .../config/schema/field.views.schema.yml | 60 ++++ ...ld.field.entity_test.field_test_import.yml | 6 +- ....field.entity_test.field_test_import_2.yml | 6 +- ...ity_test.entity_test.field_test_import.yml | 4 +- ...y_test.entity_test.field_test_import_2.yml | 8 +- ...y_test.test_bundle.field_test_import_2.yml | 8 +- .../views.view.test_view_fieldapi.yml | 2 +- .../field_ui/Tests/ManageFieldsTest.php | 2 +- .../file/config/schema/file.schema.yml | 53 +++ .../file/config/schema/file.views.schema.yml | 46 +++ core/modules/file/config/views.view.files.yml | 48 +-- .../views.view.file_extension_view.yml | 2 +- .../filter/config/schema/filter.schema.yml | 30 ++ ...y.display.taxonomy_term.forums.default.yml | 2 + .../views.view.test_forum_index.yml | 4 +- .../config/schema/history.views.schema.yml | 13 + .../image/config/schema/image.schema.yml | 25 ++ .../language/config/language.entity.und.yml | 2 +- .../language/config/language.entity.zxx.yml | 2 +- .../config/schema/language.views.schema.yml | 13 + .../link/config/schema/link.schema.yml | 58 ++++ .../modules/locale/config/locale.settings.yml | 2 +- .../locale/config/schema/locale.schema.yml | 3 + .../config/schema/locale_test.schema.yml | 17 + .../config/entity.view_mode.node.full.yml | 6 +- .../node/config/entity.view_mode.node.rss.yml | 4 +- .../config/entity.view_mode.node.teaser.yml | 4 +- .../node/config/schema/node.schema.yml | 47 +++ .../node/config/schema/node.views.schema.yml | 258 +++++++++++++++ .../system.action.node_delete_action.yml | 2 +- .../system.action.node_make_sticky_action.yml | 2 +- ...ystem.action.node_make_unsticky_action.yml | 2 +- .../system.action.node_promote_action.yml | 2 +- .../system.action.node_publish_action.yml | 2 +- .../config/system.action.node_save_action.yml | 2 +- .../system.action.node_unpromote_action.yml | 2 +- .../system.action.node_unpublish_action.yml | 2 +- .../node/config/views.view.content.yml | 48 +-- .../node/config/views.view.content_recent.yml | 303 +++++++++--------- .../node/config/views.view.frontpage.yml | 28 +- .../config/node.type.default.yml | 16 +- .../staging/node.type.import.yml | 12 +- .../views.view.test_contextual_links.yml | 36 +-- .../test_views/views.view.test_field_type.yml | 2 +- ...ews.view.test_filter_node_uid_revision.yml | 2 +- .../views.view.test_node_bulk_form.yml | 4 +- .../views.view.test_node_revision_nid.yml | 2 +- .../views.view.test_node_revision_vid.yml | 2 +- .../views.view.test_node_row_plugin.yml | 14 +- .../test_views/views.view.test_node_view.yml | 88 ++--- .../views.view.test_status_extra.yml | 68 ++-- .../number/config/schema/number.schema.yml | 58 ++++ .../options/config/schema/options.schema.yml | 52 +++ .../picture/config/schema/picture.schema.yml | 18 ++ .../rest/config/schema/rest.schema.yml | 48 ++- .../rest/config/schema/rest.views.schema.yml | 38 +++ ...ws.view.test_serializer_display_entity.yml | 6 +- ...ews.view.test_serializer_display_field.yml | 12 +- ...iew.test_serializer_node_display_field.yml | 46 +-- .../entity.view_mode.node.search_index.yml | 2 +- .../entity.view_mode.node.search_result.yml | 2 +- .../config/schema/search.views.schema.yml | 36 +++ .../schema/search_extra_type.schema.yml | 8 + .../simpletest/config/simpletest.settings.yml | 6 +- ...views.view.test_statistics_integration.yml | 8 +- .../system/config/schema/system.schema.yml | 166 +++++++++- core/modules/system/config/system.date.yml | 6 +- core/modules/system/config/system.file.yml | 2 +- .../modules/system/config/system.image.gd.yml | 2 +- .../system/config/system.menu.account.yml | 2 +- .../system/config/system.menu.admin.yml | 2 +- .../system/config/system.menu.footer.yml | 2 +- .../system/config/system.menu.main.yml | 2 +- .../system/config/system.menu.tools.yml | 2 +- core/modules/system/config/system.module.yml | 2 +- .../system/config/system.performance.yml | 4 +- .../system/config/system.theme.global.yml | 22 +- core/modules/system/config/system.theme.yml | 4 +- .../Drupal/system/Tests/File/FileTestBase.php | 10 - .../entity.view_mode.entity_test.full.yml | 4 +- .../entity.view_mode.entity_test.test.yml | 4 +- .../config/schema/image_test.schema.yml | 9 + .../config/schema/menu_test.schema.yml | 9 + .../schema/update_script_test.schema.yml | 10 + .../config/update_script_test.settings.yml | 2 +- .../entity.view_mode.taxonomy_term.full.yml | 6 +- .../config/schema/taxonomy.schema.yml | 41 ++- .../config/schema/taxonomy.views.schema.yml | 198 ++++++++++++ ...ws.view.test_filter_taxonomy_index_tid.yml | 104 +++--- .../views.view.test_groupwise_term.yml | 8 +- ...iews.view.test_taxonomy_node_term_data.yml | 16 +- .../config/schema/telephone.schema.yml | 25 ++ .../text/config/schema/text.schema.yml | 94 +++++- .../config/tour.tour.tour-test-2.yml | 8 +- .../tour_test/config/tour.tour.tour-test.yml | 26 +- .../config/schema/tracker.views.schema.yml | 9 + .../views.view.test_tracker_user_uid.yml | 102 +++--- .../modules/update/config/update.settings.yml | 2 +- .../config/schema/update_test.schema.yml | 24 ++ .../config/update_test.settings.yml | 2 +- .../config/entity.view_mode.user.full.yml | 2 +- .../user/config/schema/user.schema.yml | 27 ++ .../user/config/schema/user.view.schema.yml | 34 -- .../user/config/schema/user.views.schema.yml | 146 +++++++++ .../user/config/search.page.user_search.yml | 2 +- .../system.action.user_block_user_action.yml | 2 +- .../system.action.user_cancel_user_action.yml | 2 +- ...system.action.user_unblock_user_action.yml | 2 +- .../config/views.view.user_admin_people.yml | 61 ++-- .../user/config/views.view.who_s_new.yml | 89 ++--- .../user/config/views.view.who_s_online.yml | 94 +++--- .../views.view.test_access_perm.yml | 2 +- .../views.view.test_access_role.yml | 4 +- .../views.view.test_field_permission.yml | 2 +- .../views.view.test_filter_permission.yml | 2 +- ...t_plugin_argument_default_current_user.yml | 2 +- .../views.view.test_user_bulk_form.yml | 4 +- .../test_views/views.view.test_user_data.yml | 2 +- .../test_views/views.view.test_user_name.yml | 4 +- .../views.view.test_user_relationship.yml | 2 +- .../views.view.test_user_uid_argument.yml | 2 +- ....view.test_view_argument_validate_user.yml | 2 +- ...ews.view.test_views_handler_field_role.yml | 4 +- ...iew.test_views_handler_field_user_name.yml | 2 +- .../config/schema/views.access.schema.yml | 15 - .../config/schema/views.argument.schema.yml | 78 +++++ .../views.argument_validator.schema.yml | 16 + .../config/schema/views.data_types.schema.yml | 168 ++++++++-- .../config/schema/views.display.schema.yml | 30 +- .../config/schema/views.field.schema.yml | 25 +- .../config/schema/views.filter.schema.yml | 66 ++-- .../schema/views.filter_value.schema.yml | 5 - .../config/schema/views.pager.schema.yml | 7 +- .../schema/views.relationship.schema.yml | 4 + .../views/config/schema/views.row.schema.yml | 34 +- .../views/config/schema/views.schema.yml | 5 +- .../views/config/schema/views.sort.schema.yml | 38 +++ .../schema/views.sort_expose.schema.yml | 8 - .../config/schema/views.style.schema.yml | 13 +- .../views/config/views.view.archive.yml | 10 +- .../views/config/views.view.glossary.yml | 18 +- .../views/config/views.view.taxonomy_term.yml | 26 +- .../views/config/views.view.tracker.yml | 34 +- .../views.view.test_access_none.yml | 2 +- .../views.view.test_aggregate_count.yml | 2 +- .../test_views/views.view.test_ajax_view.yml | 4 +- .../test_views/views.view.test_alias.yml | 2 +- .../test_views/views.view.test_area_title.yml | 4 +- .../test_views/views.view.test_area_view.yml | 2 +- .../views.view.test_argument_date.yml | 2 +- ...iew.test_argument_default_current_user.yml | 2 +- ...views.view.test_argument_default_fixed.yml | 2 +- .../views.view.test_attachment_ui.yml | 8 +- .../test_views/views.view.test_cache.yml | 2 +- .../test_views/views.view.test_click_sort.yml | 4 +- .../test_views/views.view.test_destroy.yml | 8 +- .../test_views/views.view.test_display.yml | 6 +- .../views.view.test_display_attachment.yml | 6 +- .../views.view.test_display_defaults.yml | 2 +- .../views.view.test_display_empty.yml | 2 +- .../views.view.test_display_invalid.yml | 6 +- .../views.view.test_display_more.yml | 4 +- .../test_views/views.view.test_dropbutton.yml | 4 +- .../views.view.test_entity_area.yml | 2 +- .../test_views/views.view.test_entity_row.yml | 2 +- .../views.view.test_entity_type_filter.yml | 2 +- .../views.view.test_example_area.yml | 2 +- .../views.view.test_executable_displays.yml | 6 +- .../views.view.test_exposed_admin_ui.yml | 4 +- .../views.view.test_exposed_block.yml | 4 +- .../views.view.test_exposed_form.yml | 2 +- .../views.view.test_exposed_form_buttons.yml | 4 +- .../views.view.test_field_classes.yml | 4 +- .../views.view.test_field_get_entity.yml | 2 +- .../views.view.test_field_output.yml | 2 +- .../views.view.test_field_tokens.yml | 2 +- .../test_views/views.view.test_filter.yml | 2 +- .../views.view.test_filter_date_between.yml | 2 +- .../views.view.test_filter_group_override.yml | 4 +- .../views.view.test_filter_groups.yml | 4 +- .../views.view.test_filter_in_operator_ui.yml | 2 +- .../views.view.test_get_attach_displays.yml | 8 +- .../test_views/views.view.test_glossary.yml | 2 +- .../test_views/views.view.test_grid.yml | 4 +- .../views.view.test_group_by_count.yml | 2 +- .../views.view.test_group_by_in_filters.yml | 2 +- .../views.view.test_handler_relationships.yml | 2 +- .../views.view.test_handler_test_access.yml | 2 +- .../test_views/views.view.test_history.yml | 6 +- .../views.view.test_http_status_code.yml | 4 +- .../test_views/views.view.test_mini_pager.yml | 8 +- .../views.view.test_page_display.yml | 8 +- ...views.view.test_page_display_arguments.yml | 12 +- .../views.view.test_page_display_menu.yml | 6 +- .../views.view.test_page_display_route.yml | 16 +- .../test_views/views.view.test_page_view.yml | 2 +- .../test_views/views.view.test_pager_full.yml | 2 +- .../test_views/views.view.test_pager_none.yml | 2 +- .../test_views/views.view.test_pager_some.yml | 2 +- .../test_views/views.view.test_preview.yml | 2 +- .../views.view.test_redirect_view.yml | 4 +- .../views.view.test_simple_argument.yml | 2 +- .../views.view.test_store_pager_settings.yml | 2 +- .../views.view.test_style_mapping.yml | 2 +- .../test_views/views.view.test_table.yml | 4 +- .../test_views/views.view.test_tag_cache.yml | 2 +- .../test_views/views.view.test_tokens.yml | 4 +- .../test_views/views.view.test_view.yml | 2 +- ...ew.test_view_argument_validate_numeric.yml | 2 +- ...s.view.test_view_argument_validate_php.yml | 2 +- .../views.view.test_view_broken.yml | 2 +- .../views.view.test_view_delete.yml | 2 +- .../views.view.test_view_display_template.yml | 2 +- .../test_views/views.view.test_view_empty.yml | 2 +- .../views.view.test_view_handler_weight.yml | 2 +- .../views.view.test_view_optional.yml | 2 +- ...st_view_pager_full_zero_items_per_page.yml | 2 +- .../views.view.test_view_render.yml | 2 +- .../views.view.test_view_status.yml | 2 +- .../views.view.test_view_storage.yml | 6 +- .../views.view.test_views_groupby_save.yml | 2 +- .../views.view.test_access_static.yml | 4 +- .../config/block.block.stark_admin.yml | 8 +- .../config/block.block.stark_login.yml | 8 +- .../config/block.block.stark_tools.yml | 8 +- .../config/block.block.bartik_breadcrumbs.yml | 8 +- .../config/block.block.bartik_content.yml | 8 +- .../config/block.block.bartik_footer.yml | 8 +- .../config/block.block.bartik_help.yml | 8 +- .../config/block.block.bartik_login.yml | 8 +- .../config/block.block.bartik_powered.yml | 8 +- .../config/block.block.bartik_search.yml | 8 +- .../config/block.block.bartik_tools.yml | 8 +- .../config/block.block.seven_breadcrumbs.yml | 8 +- .../config/block.block.seven_content.yml | 8 +- .../config/block.block.seven_help.yml | 8 +- .../config/block.block.seven_login.yml | 9 +- .../config/editor.editor.full_html.yml | 3 +- .../entity.display.node.article.default.yml | 8 +- .../entity.display.node.article.teaser.yml | 10 +- ...tity.form_display.node.article.default.yml | 14 +- .../config/field.field.node.field_image.yml | 8 +- .../config/field.field.node.field_tags.yml | 8 +- .../config/field.field.user.user_picture.yml | 8 +- ...ield.instance.node.article.field_image.yml | 9 +- ...field.instance.node.article.field_tags.yml | 2 +- .../field.instance.user.user.user_picture.yml | 8 +- .../config/filter.format.basic_html.yml | 2 +- .../standard/config/node.type.article.yml | 6 +- .../standard/config/node.type.page.yml | 6 +- core/profiles/standard/config/system.cron.yml | 6 +- .../config/taxonomy.vocabulary.tags.yml | 6 +- core/themes/bartik/config/bartik.settings.yml | 2 +- .../bartik/config/schema/bartik.schema.yml | 5 + .../seven/config/schema/seven.schema.yml | 9 + core/themes/seven/config/seven.settings.yml | 2 +- .../stark/config/schema/stark.schema.yml | 9 + core/themes/stark/config/stark.settings.yml | 2 +- 306 files changed, 4378 insertions(+), 1489 deletions(-) create mode 100644 core/lib/Drupal/Core/Config/UnsupportedConfigDataTypeException.php create mode 100644 core/modules/action/config/schema/action.views.schema.yml delete mode 100644 core/modules/action/config/schema/views.field.schema.yml create mode 100644 core/modules/aggregator/config/schema/aggregator.views.schema.yml create mode 100644 core/modules/aggregator/tests/modules/aggregator_test/config/schema/aggregator_test.schema.yml create mode 100644 core/modules/block/config/schema/block.views.schema.yml create mode 100644 core/modules/comment/config/schema/comment.schema.yml create mode 100644 core/modules/comment/config/schema/comment.views.schema.yml create mode 100644 core/modules/config/lib/Drupal/config/Tests/DefaultConfigTest.php create mode 100644 core/modules/config/tests/config_integration_test/config/schema/config_integration_test.schema.yml create mode 100644 core/modules/config/tests/config_test/lib/Drupal/config_test/TestInstallStorage.php create mode 100644 core/modules/config/tests/config_test/lib/Drupal/config_test/TestSchemaStorage.php create mode 100644 core/modules/config/tests/config_test_invalid_name/config/schema/config_test_invalid_name.schema.yml create mode 100644 core/modules/contact/config/schema/contact.views.schema.yml create mode 100644 core/modules/content_translation/config/schema/content_translation.views.schema.yml create mode 100644 core/modules/contextual/config/schema/contextual.views.schema.yml create mode 100644 core/modules/dblog/config/schema/dblog.views.schema.yml create mode 100644 core/modules/entity/config/schema/entity.data_types.yml create mode 100644 core/modules/entity_reference/config/schema/entity_reference.views.schema.yml create mode 100644 core/modules/field/config/schema/field.views.schema.yml create mode 100644 core/modules/file/config/schema/file.views.schema.yml create mode 100644 core/modules/history/config/schema/history.views.schema.yml create mode 100644 core/modules/language/config/schema/language.views.schema.yml create mode 100644 core/modules/link/config/schema/link.schema.yml create mode 100644 core/modules/locale/tests/modules/locale_test/config/schema/locale_test.schema.yml create mode 100644 core/modules/node/config/schema/node.views.schema.yml create mode 100644 core/modules/rest/config/schema/rest.views.schema.yml create mode 100644 core/modules/search/config/schema/search.views.schema.yml create mode 100644 core/modules/system/tests/modules/image_test/config/schema/image_test.schema.yml create mode 100644 core/modules/system/tests/modules/menu_test/config/schema/menu_test.schema.yml create mode 100644 core/modules/system/tests/modules/update_script_test/config/schema/update_script_test.schema.yml create mode 100644 core/modules/taxonomy/config/schema/taxonomy.views.schema.yml create mode 100644 core/modules/telephone/config/schema/telephone.schema.yml create mode 100644 core/modules/tracker/config/schema/tracker.views.schema.yml create mode 100644 core/modules/update/tests/modules/update_test/config/schema/update_test.schema.yml delete mode 100644 core/modules/user/config/schema/user.view.schema.yml create mode 100644 core/modules/user/config/schema/user.views.schema.yml delete mode 100644 core/modules/views/config/schema/views.filter_value.schema.yml delete mode 100644 core/modules/views/config/schema/views.sort_expose.schema.yml create mode 100644 core/themes/bartik/config/schema/bartik.schema.yml create mode 100644 core/themes/seven/config/schema/seven.schema.yml create mode 100644 core/themes/stark/config/schema/stark.schema.yml diff --git a/core/lib/Drupal/Core/Config/Config.php b/core/lib/Drupal/Core/Config/Config.php index c375e83620b3..68502c67a94e 100644 --- a/core/lib/Drupal/Core/Config/Config.php +++ b/core/lib/Drupal/Core/Config/Config.php @@ -574,8 +574,8 @@ protected function castValue($key, $value) { } } catch (SchemaIncompleteException $e) { - // @todo throw an exception due to an incomplete schema. Only possible - // once https://drupal.org/node/1910624 is complete. + // @todo throw an exception due to an incomplete schema. + // Fix as part of https://drupal.org/node/2183983. } } else { diff --git a/core/lib/Drupal/Core/Config/Schema/core.data_types.schema.yml b/core/lib/Drupal/Core/Config/Schema/core.data_types.schema.yml index 6ada1c4a5319..5395c167f8e7 100644 --- a/core/lib/Drupal/Core/Config/Schema/core.data_types.schema.yml +++ b/core/lib/Drupal/Core/Config/Schema/core.data_types.schema.yml @@ -78,12 +78,49 @@ 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' # Array of routes with route_name and route_params keys. route: diff --git a/core/lib/Drupal/Core/Config/UnsupportedConfigDataTypeException.php b/core/lib/Drupal/Core/Config/UnsupportedConfigDataTypeException.php new file mode 100644 index 000000000000..ac63c2608179 --- /dev/null +++ b/core/lib/Drupal/Core/Config/UnsupportedConfigDataTypeException.php @@ -0,0 +1,14 @@ +<?php + +/** + * @file + * Contains \Drupal\Core\Config\UnsupportedConfigDataTypeException. + */ + +namespace Drupal\Core\Config; + +/** + * Exception thrown when a config data type is invalid. + */ +class UnsupportedConfigDataTypeException extends ConfigException { +} diff --git a/core/modules/action/config/schema/action.schema.yml b/core/modules/action/config/schema/action.schema.yml index fb7b2890e1d8..04cec7e10dd6 100644 --- a/core/modules/action/config/schema/action.schema.yml +++ b/core/modules/action/config/schema/action.schema.yml @@ -7,3 +7,34 @@ action.settings: recursion_limit: type: integer label: 'Recursion limit for actions' + + +action.configuration.action_send_email_action: + type: mapping + label: 'Send e-mail configuration' + mapping: + recipient: + type: string + label: 'Recipient' + subject: + type: label + label: 'Subject' + message: + type: text + label: 'Message' + +action.configuration.action_goto_action: + type: mapping + label: 'Redirect to URL configuration' + mapping: + url: + type: string + label: 'URL' + +action.configuration.action_message_action: + type: mapping + label: 'Display a message to the user configuration' + mapping: + message: + type: text + label: 'Message' diff --git a/core/modules/action/config/schema/action.views.schema.yml b/core/modules/action/config/schema/action.views.schema.yml new file mode 100644 index 000000000000..2ef4710f0cbf --- /dev/null +++ b/core/modules/action/config/schema/action.views.schema.yml @@ -0,0 +1,3 @@ +views.field.bulk_form: + type: views_field_bulk_form + label: 'Bulk form' diff --git a/core/modules/action/config/schema/views.field.schema.yml b/core/modules/action/config/schema/views.field.schema.yml deleted file mode 100644 index cd19eee3679a..000000000000 --- a/core/modules/action/config/schema/views.field.schema.yml +++ /dev/null @@ -1,7 +0,0 @@ -views.field.bulk_form: - type: views_field - label: 'Bulk form' - mapping: - action_title: - type: label - label: 'Action title' diff --git a/core/modules/action/tests/action_bulk_test/config/views.view.test_bulk_form.yml b/core/modules/action/tests/action_bulk_test/config/views.view.test_bulk_form.yml index a16655cf2380..ff05d910219c 100644 --- a/core/modules/action/tests/action_bulk_test/config/views.view.test_bulk_form.yml +++ b/core/modules/action/tests/action_bulk_test/config/views.view.test_bulk_form.yml @@ -9,7 +9,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm @@ -22,35 +22,35 @@ display: pager: type: full options: - items_per_page: '10' + items_per_page: 10 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 summary: '' columns: title: title action_bulk_form: action_bulk_form info: title: - sortable: '0' + sortable: false default_sort_order: asc align: '' separator: '' - empty_column: '0' + empty_column: false responsive: '' bulk_form: align: '' separator: '' - empty_column: '0' + empty_column: false responsive: '' - default: '-1' - empty_table: '0' + default: '' + empty_table: false row: type: fields fields: @@ -60,17 +60,17 @@ display: field: title 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 plugin_id: node provider: node action_bulk_form: @@ -81,57 +81,57 @@ display: group_type: group admin_label: '' label: 'Bulk form' - 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 plugin_id: action_bulk_form provider: action filters: status: - value: '1' + value: true table: node_field_data field: status id: status expose: - operator: '0' - group: '1' + operator: '' + group: 1 plugin_id: boolean provider: views sorts: @@ -147,10 +147,10 @@ display: display_plugin: page id: page_1 display_title: Page - position: '' + position: null display_options: path: test_bulk_form base_field: nid -status: '1' +status: true module: views langcode: und diff --git a/core/modules/aggregator/config/schema/aggregator.views.schema.yml b/core/modules/aggregator/config/schema/aggregator.views.schema.yml new file mode 100644 index 000000000000..027c75995e00 --- /dev/null +++ b/core/modules/aggregator/config/schema/aggregator.views.schema.yml @@ -0,0 +1,29 @@ +# Schema for the views plugins of the Aggregator module. + +views.argument.aggregator_fid: + type: views.argument.numeric + label: 'Aggregator feed ID' + +views.argument.aggregator_iid: + type: views.argument.numeric + label: 'Aggregator item ID' + +views.field.aggregator_title_link: + type: views_field + label: 'Title link' + mapping: + display_as_link: + type: boolean + label: 'Display as link' + +views.field.aggregator_xss: + type: views.field.xss + label: 'Aggregator XSS' + +views.row.aggregator_rss: + type: views_row + label: 'Aggregator item row' + mapping: + item_length: + type: string + label: 'Display type' diff --git a/core/modules/aggregator/config/views.view.aggregator_rss_feed.yml b/core/modules/aggregator/config/views.view.aggregator_rss_feed.yml index cf7a18bebfb6..25909601365c 100644 --- a/core/modules/aggregator/config/views.view.aggregator_rss_feed.yml +++ b/core/modules/aggregator/config/views.view.aggregator_rss_feed.yml @@ -42,7 +42,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 @@ -54,7 +54,7 @@ display: next: 'next ›' first: '« first' last: 'last »' - quantity: '9' + quantity: 9 style: type: default row: @@ -69,6 +69,7 @@ display: admin_label: '' label: 'Item ID' exclude: false + plugin_id: numeric alter: alter_text: false text: '' @@ -108,11 +109,11 @@ display: hide_empty: false empty_zero: false hide_alter_empty: true - set_precision: '0' - precision: '0' + set_precision: false + precision: 0 decimal: . separator: ',' - format_plural: '0' + format_plural: false format_plural_singular: '1' format_plural_plural: '@count' prefix: '' diff --git a/core/modules/aggregator/tests/modules/aggregator_test/config/schema/aggregator_test.schema.yml b/core/modules/aggregator/tests/modules/aggregator_test/config/schema/aggregator_test.schema.yml new file mode 100644 index 000000000000..63347daf5419 --- /dev/null +++ b/core/modules/aggregator/tests/modules/aggregator_test/config/schema/aggregator_test.schema.yml @@ -0,0 +1,13 @@ +# Schema for the configuration files of the Aggregator Test module. + +aggregator_test.settings: + type: mapping + label: 'Aggregator test settings' + mapping: + items: + type: mapping + label: 'Items' + mapping: + dummy_length: + type: integer + label: 'Dummy length' diff --git a/core/modules/aggregator/tests/modules/aggregator_test_views/test_views/views.view.test_aggregator_items.yml b/core/modules/aggregator/tests/modules/aggregator_test_views/test_views/views.view.test_aggregator_items.yml index c4e51f76af93..0d6dcbb86f84 100644 --- a/core/modules/aggregator/tests/modules/aggregator_test_views/test_views/views.view.test_aggregator_items.yml +++ b/core/modules/aggregator/tests/modules/aggregator_test_views/test_views/views.view.test_aggregator_items.yml @@ -2,13 +2,24 @@ base_field: iid base_table: aggregator_item core: 8.x description: '' -status: '1' +status: true display: + feed_1: + display_plugin: feed + id: feed_1 + display_title: Feed + position: null + display_options: + path: test-aggregator-items-feed + row: + type: aggregator_rss + options: + item_length: default default: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: none @@ -36,32 +47,32 @@ display: id: title plugin_id: aggregator_title_link 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 timestamp: table: aggregator_item field: timestamp @@ -73,32 +84,32 @@ display: id: author plugin_id: aggregator_xss 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 description: id: description table: aggregator_item @@ -107,62 +118,52 @@ 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 plugin_id: aggregator_xss filters: { } sorts: { } - feed_1: - display_plugin: feed - id: feed_1 - display_title: Feed - position: '' - display_options: - path: test-aggregator-items-feed - row: - type: aggregator_rss - options: - item_length: default label: test_aggregator_items module: views id: test_aggregator_items tag: '' langcode: en +uuid: 19dd643f-9324-44df-ac72-0be915b334d1 diff --git a/core/modules/block/config/schema/block.views.schema.yml b/core/modules/block/config/schema/block.views.schema.yml new file mode 100644 index 000000000000..1ffe388f3287 --- /dev/null +++ b/core/modules/block/config/schema/block.views.schema.yml @@ -0,0 +1,22 @@ +# Schema for the views plugins of the Block module. + + +views.display.block: + type: views_display + label: 'Block display options' + mapping: + block_description: + type: label + label: 'Block name' + block_category: + type: text + label: 'Block category' + block_caching: + type: integer + label: 'Block caching' + block_hide_empty: + type: boolean + label: 'Hide block if no result/empty text' + allow: + type: boolean + label: 'Allow' diff --git a/core/modules/block/tests/modules/block_test/config/block.block.test_block.yml b/core/modules/block/tests/modules/block_test/config/block.block.test_block.yml index 49ef788624f3..bb651744481b 100644 --- a/core/modules/block/tests/modules/block_test/config/block.block.test_block.yml +++ b/core/modules/block/tests/modules/block_test/config/block.block.test_block.yml @@ -1,15 +1,15 @@ id: test_block theme: stark -weight: '' +weight: 0 status: true langcode: en -region: -1 +region: '-1' plugin: test_html_id settings: label: 'Test block html id' module: block_test - label_display: false - cache: true + label_display: 'hidden' + cache: 1 visibility: path: visibility: 0 diff --git a/core/modules/block/tests/modules/block_test_views/test_views/views.view.test_view_block.yml b/core/modules/block/tests/modules/block_test_views/test_views/views.view.test_view_block.yml index 756ec652a91f..ce61f44ce60b 100644 --- a/core/modules/block/tests/modules/block_test_views/test_views/views.view.test_view_block.yml +++ b/core/modules/block/tests/modules/block_test_views/test_views/views.view.test_view_block.yml @@ -8,7 +8,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm @@ -37,7 +37,7 @@ display: display_plugin: block id: block_1 display_title: Block - position: '' + position: null display_options: field: title: diff --git a/core/modules/block/tests/modules/block_test_views/test_views/views.view.test_view_block2.yml b/core/modules/block/tests/modules/block_test_views/test_views/views.view.test_view_block2.yml index b9da50880387..938220ef8cc3 100644 --- a/core/modules/block/tests/modules/block_test_views/test_views/views.view.test_view_block2.yml +++ b/core/modules/block/tests/modules/block_test_views/test_views/views.view.test_view_block2.yml @@ -8,7 +8,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm @@ -37,7 +37,7 @@ display: display_plugin: block id: block_1 display_title: Block - position: '' + position: null display_options: field: title: @@ -46,7 +46,7 @@ display: display_plugin: block id: block_2 display_title: Block - position: '' + position: null display_options: field: title: @@ -55,7 +55,7 @@ display: display_plugin: block id: block_3 display_title: Block - position: '' + position: null display_options: block_caching: 2 field: diff --git a/core/modules/book/config/node.type.book.yml b/core/modules/book/config/node.type.book.yml index 63f98b2a442c..e8ee747da923 100644 --- a/core/modules/book/config/node.type.book.yml +++ b/core/modules/book/config/node.type.book.yml @@ -9,11 +9,11 @@ settings: node: preview: 1 options: - status: status + status: true # Not promoted to front page. - promote: '0' - sticky: '0' - revision: '0' + promote: false + sticky: false + revision: false submitted: true status: true langcode: en diff --git a/core/modules/breakpoint/config/schema/breakpoint.schema.yml b/core/modules/breakpoint/config/schema/breakpoint.schema.yml index 6281da79d938..ce219485cd1d 100644 --- a/core/modules/breakpoint/config/schema/breakpoint.schema.yml +++ b/core/modules/breakpoint/config/schema/breakpoint.schema.yml @@ -25,7 +25,7 @@ breakpoint.breakpoint.*.*.*: type: string label: 'Source type' weight: - type: string + type: integer label: 'Weight' multipliers: type: sequence @@ -56,7 +56,7 @@ breakpoint.breakpoint_group.*.*.*: label: type: string label: 'Label' - breakpoints: + breakpoint_ids: type: sequence label: 'Breakpoints' sequence: diff --git a/core/modules/comment/config/entity.view_mode.comment.full.yml b/core/modules/comment/config/entity.view_mode.comment.full.yml index f3ce7fc1c69f..9f99609718be 100644 --- a/core/modules/comment/config/entity.view_mode.comment.full.yml +++ b/core/modules/comment/config/entity.view_mode.comment.full.yml @@ -1,6 +1,6 @@ id: comment.full uuid: 06ab5b16-e197-4242-b72c-4453793fabba -label: Full comment +label: 'Full comment' status: false cache: true targetEntityType: comment diff --git a/core/modules/comment/config/schema/comment.schema.yml b/core/modules/comment/config/schema/comment.schema.yml new file mode 100644 index 000000000000..9a09151ad662 --- /dev/null +++ b/core/modules/comment/config/schema/comment.schema.yml @@ -0,0 +1,44 @@ +# Schema for the configuration files of the Comment module. + +entity_display.field.comment_default: + type: entity_field_display_base + label: 'Comment display format settings' + mapping: + settings: + type: sequence + label: 'Settings' + sequence: + - type: string + +entity_form_display.field.comment_default: + type: entity_field_form_display_base + label: 'Comment display format settings' + mapping: + settings: + type: sequence + label: 'Settings' + sequence: + - type: string + +action.configuration.comment_publish_action: + type: action_configuration_default + label: 'Publish comment configuration' + +action.configuration.comment_save_action: + type: action_configuration_default + label: 'Save comment configuration' + +action.configuration.comment_unpublish_by_keyword_action: + type: mapping + label: 'Unpublish comment containing keyword(s) configuration' + mapping: + keyword: + type: sequence + label: 'Keywords' + sequence: + - type: sequence + label: 'Keyword' + +action.configuration.comment_unpublish_action: + type: action_configuration_default + label: 'Unpublish comment configuration' diff --git a/core/modules/comment/config/schema/comment.views.schema.yml b/core/modules/comment/config/schema/comment.views.schema.yml new file mode 100644 index 000000000000..3a95f9d7ee36 --- /dev/null +++ b/core/modules/comment/config/schema/comment.views.schema.yml @@ -0,0 +1,136 @@ +# Schema for the views plugins of the Comment module. + +views.argument.argument_comment_user_uid: + type: views_argument + label: 'Commented user ID' + +views.field.comment: + type: views_field + label: 'Comment' + mapping: + link_to_comment: + type: boolean + label: 'Link this field to its comment' + link_to_entity: + type: boolean + label: 'Link field to the entity if there is no comment.' + +views.field.comment_depth: + type: views_field + label: 'Comment depth' + +views.field.comment_entity_link: + type: views_field + label: 'Comment link' + mapping: + teaser: + type: boolean + label: 'Show teaser-style link' + +views.field.comment_last_timestamp: + type: views.field.date + label: 'Last comment date' + +views.field.comment_link: + type: views_field + label: 'Comment link' + mapping: + text: + type: views_field + label: 'Text to display' + link_to_entity: + type: views_field + label: 'Link field to the entity if there is no comment.' + +views.field.comment_link_approve: + type: views.field.comment_link + label: 'Comment approve link' + +views.field.comment_link_delete: + type: views.field.comment_link + label: 'Comment delete link' + +views.field.comment_link_edit: + type: views.field.comment_link + label: 'Comment edit link' + mapping: + destination: + type: boolean + label: 'Use destination' + +views.field.comment_link_reply: + type: views.field.comment_link + label: 'Comment reply link' + +views.field.node_new_comments: + type: views.field.numeric + label: 'Number of new comments' + mapping: + link_to_comment: + type: boolean + label: 'Link this field to new comments' + +views.field.comment_ces_last_comment_name: + type: views_field + label: 'Name of last comment poster' + +views.field.comment_ces_last_updated: + type: views_field + label: 'Newer of last comment / node updated' + +views.field.comment_username: + type: views_field + label: 'Node comment status' + mapping: + link_to_user: + type: boolean + label: 'Link this field to its user or an author''s homepage' + +views.filter.node_comment: + type: views.filter.in_operator + label: 'Comment node status' + +views.filter.comment_ces_last_updated: + type: views.filter.date + label: 'Newer of last comment / node updated' + +views.filter.comment_user_uid: + type: views_filter + label: 'Node user posted comment' + +"views.row.entity:comment": + type: mapping + label: 'Entity options' + mapping: + view_mode: + type: string + label: 'View mode' + relationship: + type: string + label: 'Relationship' + links: + type: boolean + label: 'Display links' + +views.row.comment_rss: + type: views_row + label: 'Comment' + mapping: + item_length: + type: string + label: 'Display type' + links: + type: boolean + label: 'Display links' + +views.sort.comment_ces_last_comment_name: + type: views_sort + label: 'Last comment name' + +views.sort.comment_ces_last_updated: + type: views.sort.date + label: 'Newer of last comment / entity updated' + +views.sort.comment_thread: + type: views_sort + label: 'Thread' diff --git a/core/modules/comment/config/views.view.comments_recent.yml b/core/modules/comment/config/views.view.comments_recent.yml index 7650bf4c0ad6..e6559fea74d7 100644 --- a/core/modules/comment/config/views.view.comments_recent.yml +++ b/core/modules/comment/config/views.view.comments_recent.yml @@ -11,7 +11,7 @@ display: position: 0 display_options: block_description: 'Recent comments' - block_category: Lists (Views) + block_category: 'Lists (Views)' default: display_plugin: default id: default @@ -110,7 +110,7 @@ display: empty_zero: false hide_alter_empty: true link_to_comment: true - link_to_node: false + link_to_entity: false changed: id: changed table: comment @@ -171,7 +171,7 @@ display: id: status plugin_id: boolean expose: - operator: false + operator: '' group: 1 status_node: value: true @@ -181,7 +181,7 @@ display: id: status_node plugin_id: boolean expose: - operator: false + operator: '' group: 1 sorts: created: diff --git a/core/modules/comment/tests/modules/comment_test_views/test_views/views.view.test_comment_row.yml b/core/modules/comment/tests/modules/comment_test_views/test_views/views.view.test_comment_row.yml index 5e8b96e221c7..5a50bbf7b9e6 100644 --- a/core/modules/comment/tests/modules/comment_test_views/test_views/views.view.test_comment_row.yml +++ b/core/modules/comment/tests/modules/comment_test_views/test_views/views.view.test_comment_row.yml @@ -2,13 +2,20 @@ base_field: cid base_table: comment core: 8.x description: '' -status: '1' +status: true display: + page_1: + display_plugin: page + id: page_1 + display_title: Page + position: 1 + display_options: + path: test-comment-row default: display_plugin: default id: default display_title: Master - position: '1' + position: 1 display_options: access: type: perm @@ -20,54 +27,54 @@ 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: full options: - items_per_page: '10' - offset: '0' - id: '0' - total_pages: '' + items_per_page: 10 + offset: 0 + id: 0 + total_pages: null 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: false offset_label: Offset tags: previous: '‹ previous' next: 'next ›' first: '« first' last: 'last »' - quantity: '9' + quantity: 9 style: type: default row: type: 'entity:comment' options: - links: '1' + links: true view_mode: full relationships: node: field: node id: node - required: '1' + required: true table: comment relationship: none group_type: group @@ -79,32 +86,32 @@ display: field: subject 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_comment: '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_comment: 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' - link_to_node: '0' + hide_alter_empty: true + link_to_node: false filters: status: value: '1' @@ -112,8 +119,8 @@ display: field: status id: status expose: - operator: '0' - group: '1' + operator: '' + group: 1 status_node: value: '1' table: node_field_data @@ -121,23 +128,17 @@ display: relationship: node id: status_node expose: - operator: '0' - group: '1' + operator: '' + group: 1 sorts: { } title: test_comment_row header: { } footer: { } empty: { } arguments: { } - page_1: - display_plugin: page - id: page_1 - display_title: Page - position: '1' - display_options: - path: test-comment-row label: test_comment_row module: views id: test_comment_row tag: '' langcode: en +uuid: fb77b691-eeef-4ac8-8382-15f5fd25aae0 diff --git a/core/modules/comment/tests/modules/comment_test_views/test_views/views.view.test_comment_rss.yml b/core/modules/comment/tests/modules/comment_test_views/test_views/views.view.test_comment_rss.yml index 18255cfe3532..e6facd9eb423 100644 --- a/core/modules/comment/tests/modules/comment_test_views/test_views/views.view.test_comment_rss.yml +++ b/core/modules/comment/tests/modules/comment_test_views/test_views/views.view.test_comment_rss.yml @@ -2,13 +2,20 @@ base_field: cid base_table: comment core: 8.x description: '' -status: '1' +status: true display: + feed_1: + display_plugin: feed + id: feed_1 + display_title: Feed + position: null + display_options: + path: test-comment-rss default: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm @@ -28,7 +35,7 @@ display: node: field: node id: node - required: '1' + required: true table: comment provider: views fields: @@ -39,28 +46,23 @@ display: plugin_id: comment 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_comment: '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_comment: true provider: comment filters: { } sorts: { } - feed_1: - display_plugin: feed - id: feed_1 - display_title: Feed - position: '' - display_options: - path: test-comment-rss label: test_comment_rss module: views id: test_comment_rss tag: '' +uuid: 0a29eea8-0dc4-45bd-a6d2-4b3ae711c7d4 +langcode: und diff --git a/core/modules/comment/tests/modules/comment_test_views/test_views/views.view.test_comment_user_uid.yml b/core/modules/comment/tests/modules/comment_test_views/test_views/views.view.test_comment_user_uid.yml index d7c3f3e00422..e51858486fd7 100644 --- a/core/modules/comment/tests/modules/comment_test_views/test_views/views.view.test_comment_user_uid.yml +++ b/core/modules/comment/tests/modules/comment_test_views/test_views/views.view.test_comment_user_uid.yml @@ -1,7 +1,7 @@ base_table: node core: '8' description: '' -status: '1' +status: true display: default: display_options: @@ -9,15 +9,15 @@ display: type: perm arguments: uid_touch: - default_argument_skip_url: '0' + default_argument_skip_url: false default_argument_type: fixed field: uid_touch id: uid_touch summary: format: default_summary - number_of_records: '0' + number_of_records: 0 summary_options: - items_per_page: '25' + items_per_page: 25 table: node_field_data plugin_id: argument_comment_user_uid provider: comment @@ -36,7 +36,7 @@ display: type: full query: options: - query_comment: '0' + query_comment: false type: views_query style: type: default @@ -45,7 +45,11 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: test_comment_user_uid id: test_comment_user_uid tag: default +base_field: nid +module: comment_test_views +uuid: 8f8244da-6e5e-4a8c-a17a-13ae6a3e4a88 +langcode: und diff --git a/core/modules/config/lib/Drupal/config/Tests/ConfigSchemaTest.php b/core/modules/config/lib/Drupal/config/Tests/ConfigSchemaTest.php index 5d8f2593fa9b..62341eef1c9b 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 000000000000..b7424f3cffb6 --- /dev/null +++ b/core/modules/config/lib/Drupal/config/Tests/DefaultConfigTest.php @@ -0,0 +1,185 @@ +<?php + +/** + * @file + * Contains Drupal\config\Tests\DefaultConfigTest. + */ + +namespace Drupal\config\Tests; + +use Drupal\config_test\TestInstallStorage; +use Drupal\config_test\TestSchemaStorage; +use Drupal\Core\Config\Schema\Property; +use Drupal\Core\Config\TypedConfigManager; +use Drupal\Core\TypedData\Type\BooleanInterface; +use Drupal\Core\TypedData\Type\StringInterface; +use Drupal\simpletest\DrupalUnitTestBase; +use Drupal\Component\Utility\String; +use Drupal\Core\Config\Schema\SchemaIncompleteException; +use Drupal\Core\TypedData\PrimitiveInterface; +use Drupal\Core\TypedData\Type\FloatInterface; +use Drupal\Core\TypedData\Type\IntegerInterface; + +/** + * Tests default configuration availability and type with configuration schema. + */ +class DefaultConfigTest extends DrupalUnitTestBase { + + /** + * Modules to enable. + * + * @var array + */ + public static $modules = array('config_test'); + + /** + * The config schema wrapper object for the configuration object under test. + * + * @var \Drupal\Core\Config\Schema\Element + */ + protected $schema; + + /** + * The configuration object name under test. + * + * @var string + */ + protected $configName; + + /** + * @var boolean + */ + protected $configPass; + + /** + * {@inheritdoc} + */ + public static function getInfo() { + return array( + 'name' => '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 (https://drupal.org/node/2183957) 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. + // 3. config_test.schema_in_install is testing that schema are used during + // configuration installation. + if ($config_name == 'config_test.noschema' || $config_name == 'config_test.someschema' || $config_name == 'config_test.schema_in_install') { + 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 string $key + * A string of configuration key. + * @param mixed $value + * Value of given key. + * + * @return mixed + * Returns mixed value. + */ + 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 000000000000..5010f01ffd93 --- /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 b144af633e9b..7bd70d21d6ab 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 7f6870bcaeb2..3f0b32457382 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 3afe1007acd3..c8520745bf2f 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 52505af17f53..5a594e4601b7 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' @@ -140,6 +142,42 @@ config_test.schema_in_install: type: integer label: 'Integer' +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' @@ -174,3 +212,25 @@ config_test.types: 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 000000000000..c940422fee0d --- /dev/null +++ b/core/modules/config/tests/config_test/lib/Drupal/config_test/TestInstallStorage.php @@ -0,0 +1,32 @@ +<?php + +/** + * @file + * Contains \Drupal\config_test\TestInstallStorage. + */ + +namespace Drupal\config_test; + +use Drupal\Core\Config\InstallStorage; + +/** + * Tests configuration of profiles, modules and themes. + * + * A test configuration storage to read configuration from all profiles, modules + * and themes regardless of installation status or installed profile. + */ +class TestInstallStorage extends InstallStorage { + + /** + * {@inheritdoc} + */ + protected function getAllFolders() { + if (!isset($this->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 000000000000..8d240b071e80 --- /dev/null +++ b/core/modules/config/tests/config_test/lib/Drupal/config_test/TestSchemaStorage.php @@ -0,0 +1,40 @@ +<?php + +/** + * @file + * Contains \Drupal\config_test\TestSchemaStorage. + */ + +namespace Drupal\config_test; + +use Drupal\Core\Config\Schema\SchemaStorage; + +/** + * Tests configuration schemas of profiles, modules and themes. + * + * A test configuration schema storage to read configuration schema from all + * profiles, modules and themes regardless of installation status or installed + * profile. + */ +class TestSchemaStorage extends SchemaStorage { + + /** + * Overrides Drupal\Core\Config\ExtensionInstallStorage::__construct(). + */ + public function __construct() { + } + + /** + * {@inheritdoc} + */ + protected function getAllFolders() { + if (!isset($this->folders)) { + $this->folders = $this->getBaseDataTypeSchema(); + $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 000000000000..1f541b153e5a --- /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 000000000000..6cc87eaa6c74 --- /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 b516661a3dde..17718231653f 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 000000000000..03dfc1a7e48f --- /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 Content Translation 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 3d680e05d3ba..ddfb97d1c44b 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 000000000000..235ada5d3f8e --- /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 05e9fc8cd810..bd64841435b0 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 000000000000..e504364e0ef9 --- /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 e05c0efb6891..94c04978ffe8 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 000000000000..51b118a8e71b --- /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 eb8437b9e78e..a5c7da8efdb0 100644 --- a/core/modules/entity/config/schema/entity.schema.yml +++ b/core/modules/entity/config/schema/entity.schema.yml @@ -51,3 +51,91 @@ 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 schema for entity display field with undefined type. +entity_display.field.*: + type: mapping + label: 'Entity display default' + mapping: + visible: + type: boolean + label: 'Visibility' + weight: + type: integer + label: 'Weight' + +# Default schema for entity form display field with undefined type. +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 0abe2b9f9226..c9c1037b8985 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 000000000000..f92af7b429c3 --- /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 82c39d101e1e..fbe112a07dc1 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 33b8d3e9da2c..42db94841bb3 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 000000000000..9f6d99552dfa --- /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 ff76026f1131..20b5662e7bab 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 48d5cd641de6..a94a7151db9a 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 55f29804c5d0..c1537bf2ac32 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 7bb59cf2a9a1..942f0818ce3a 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 e58e8464880c..f0b84d5ae7c5 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 b370ab1fe46c..275aefbf108b 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 a8e6508ec743..13bd15921f8c 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 2c0948417a5a..fa34c7e1b8e2 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 000000000000..2f63384037b9 --- /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 8aaae34439f8..e192361675d4 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 02cc72c32688..fe65a09e8f5f 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 3f3207123739..f1df7df3882c 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 ca4f3408f878..721433312365 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 db09537d6384..4edfdff604e8 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 000000000000..8562d98cdb9c --- /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 b0dfd56f3ac8..430a73da00a6 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 f7559b1ce3a8..59eef667d75a 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 37b02d9e1aed..dbd85fb1146f 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 000000000000..2dce3d2b94f0 --- /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 000000000000..66bf8fae6709 --- /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 a3640bc4d8a7..857a36935172 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 055593429207..72b89e1547b9 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 000000000000..dd722be88f05 --- /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 9d294f188f01..c944eb9907ba 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 d2b95711dc45..7f810991e978 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 b338d0c25d2b..d61cbf3cadbc 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 506049be24a4..07c69f2de446 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 000000000000..0852a8004b79 --- /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' 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 72183b0711b5..def11560891a 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 9358694e615a..f9907bb53b29 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 478973e20462..e41e9296db0d 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 13c299384c2e..6d6e101c4370 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 5a5a0318d909..d1081c4760d6 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 af3b61723060..9b1b86cb145e 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 f0b262d4fbc5..13c85374e999 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 b2938a70990f..b9bc350f46cd 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 ed55d9efb01e..c9855453e469 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 c96c760c962a..26be0d7a83b4 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 1a7afa5cbbdc..a7526a198bc1 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 a93a9c6daa6c..e7b22b8977fe 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 e5ce0baf9db2..66787387513b 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 7d807a86b24d..588d0ccbdde9 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 6113c52eca79..a60b7b3a5f5a 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 2d816720ac46..76f3bd92589d 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 e0748bc90638..fa63477888e6 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 24ca887654ec..fae1b1813563 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 581aa2b3b1ef..7871029a95fc 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 e7bae2547626..84b9a57bf079 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 9979d17d455b..a3c1f8022646 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 1944f59d54fe..ec77a6a59f64 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 f597c0270eba..fbacd26f421f 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 367e4b580fb4..975ab2c0adac 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 3d53c443d767..62e674176e0b 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 dff34ebffe39..b9cb6526a45c 100644 --- a/core/modules/rest/config/schema/rest.schema.yml +++ b/core/modules/rest/config/schema/rest.schema.yml @@ -8,43 +8,37 @@ 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 000000000000..351b70d36043 --- /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 13d90aaf9170..98ec07267038 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 029c34aed656..33f6c9441320 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 ed46987cf97d..aa44af08ee40 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 90df0bd7baeb..f0b42510a498 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 cfdc1acdfc1c..fe37d00dcf18 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 000000000000..b1684c6d9b2a --- /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 9a98361a4dab..de7226eddef7 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 52b2d3dc7507..a2254cc06369 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 a35c77d5db61..a666e27ba562 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.schema.yml b/core/modules/system/config/schema/system.schema.yml index 9acf83dbc267..5dbdcbf92404 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' diff --git a/core/modules/system/config/system.date.yml b/core/modules/system/config/system.date.yml index 29889df58352..6470af2f481b 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 eefee0158b2d..35ff1ec4e42e 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 fbc379f0c2a6..342e071ae0e7 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 084a6019cd3f..7d4cdd026f27 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 f9a14419fba3..4751eb1e073b 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 5fe060ced385..540c118ff3cc 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 d4fecc72e917..fe9ced51a7a5 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 c81e9c5b2b97..4a3084faf791 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 696bedcdad95..9ec80e11f4d2 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 67e82cff4600..29b434b6d88a 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: '<!DOCTYPE html><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL "@path" was not found on this server.</p></body></html>' diff --git a/core/modules/system/config/system.theme.global.yml b/core/modules/system/config/system.theme.global.yml index 2d5bc35b69cf..13036bfc5036 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 c56c7f2b4977..e88d7013b100 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 d3d913c1e091..40a00e21685f 100644 --- a/core/modules/system/lib/Drupal/system/Tests/File/FileTestBase.php +++ b/core/modules/system/lib/Drupal/system/Tests/File/FileTestBase.php @@ -57,11 +57,6 @@ function setUp() { * 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); @@ -97,11 +92,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/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 cb44396fa3e0..412942c9b90c 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 aa9b27e13938..baeed3698dff 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 000000000000..ba8ff4c07131 --- /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 000000000000..96a4bcf5fbba --- /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 000000000000..6efa59433ec8 --- /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 e0be69e06ac9..0c4e6675d36a 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 3ab1f251dd80..10c90b162a6a 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 9170280ed1a0..6c0cc455a8d5 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 000000000000..1de5e1e8a3a7 --- /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 d14ecffc110d..0914a5f98b46 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 957f2b2aeabb..2dc1c2ba52c5 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 2aebe472a139..a3fc3ca8ef37 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 000000000000..586b1e7b686b --- /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 c15ceed2bccf..c0ec52b8773f 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 32dc788c9ba1..9734cde977e2 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 routes: - route_name: 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 6452fab282a2..8f781277315d 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 routes: - route_name: tour_test.1 @@ -11,32 +11,32 @@ tips: tour-test-1: id: tour-test-1 plugin: text - label: The first tip - body: Is <a href="[site:url]">[site:name]</a> always the best dressed? - weight: "1" + label: 'The first tip' + body: 'Is <a href="[site:url]">[site:name]</a> 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: <p>Im all these things:</p><ul><li>Modal</li><li>Awesome</li></ul> - weight: "6" + label: 'Im a list' + body: '<p>Im all these things:</p><ul><li>Modal</li><li>Awesome</li></ul>' + weight: 6 attributes: data-id: tour-test-3 diff --git a/core/modules/tracker/config/schema/tracker.views.schema.yml b/core/modules/tracker/config/schema/tracker.views.schema.yml new file mode 100644 index 000000000000..b7b0ec45cd27 --- /dev/null +++ b/core/modules/tracker/config/schema/tracker.views.schema.yml @@ -0,0 +1,9 @@ +# Schema for the views plugins of the Tracker module. + +views.argument.tracker_user_uid: + type: views.argument.argument_comment_user_uid + label: 'Nodes user posted/commented on' + +views.filter.tracker_user_uid: + type: views.filter.user_name + label: 'UID of a nodes user posted/commented on' diff --git a/core/modules/tracker/tests/modules/tracker_test_views/test_views/views.view.test_tracker_user_uid.yml b/core/modules/tracker/tests/modules/tracker_test_views/test_views/views.view.test_tracker_user_uid.yml index f49627a1bd10..1182ff57b09c 100644 --- a/core/modules/tracker/tests/modules/tracker_test_views/test_views/views.view.test_tracker_user_uid.yml +++ b/core/modules/tracker/tests/modules/tracker_test_views/test_views/views.view.test_tracker_user_uid.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: '' + position: null display_options: access: type: perm @@ -25,23 +25,23 @@ display: 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 summary: '' columns: title: title info: title: - sortable: '1' + sortable: true default_sort_order: asc align: '' separator: '' - empty_column: '0' + empty_column: false responsive: '' - default: '-1' - empty_table: '0' + default: -1 + empty_table: false row: type: fields fields: @@ -53,47 +53,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: '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: '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: '1' + hide_empty: false + empty_zero: false + hide_alter_empty: true + link_to_node: true provider: node filters: uid_touch_tracker: @@ -105,33 +105,31 @@ display: admin_label: '' operator: in value: - - '0' - group: '1' - exposed: '0' + - 0 + group: 1 + exposed: false expose: operator_id: '' label: 'User posted or commented' description: '' - use_operator: '0' + use_operator: false operator: uid_touch_tracker_op identifier: uid_touch_tracker - required: '0' - remember: '0' - multiple: '0' + required: false + remember: false + multiple: false remember_roles: authenticated: authenticated - anonymous: '0' - administrator: '0' - 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: { } @@ -148,24 +146,24 @@ display: default_action: ignore 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: 1 + items_per_page: 25 + override: false summary: sort_order: asc - number_of_records: '0' + number_of_records: 0 format: default_summary - specify_validation: '0' + specify_validation: false validate: type: none fail: 'not found' diff --git a/core/modules/update/config/update.settings.yml b/core/modules/update/config/update.settings.yml index 0f3294482e05..ded8c9d24c01 100644 --- a/core/modules/update/config/update.settings.yml +++ b/core/modules/update/config/update.settings.yml @@ -7,4 +7,4 @@ fetch: timeout: 30 notification: emails: { } - threshold: '0' + threshold: all diff --git a/core/modules/update/tests/modules/update_test/config/schema/update_test.schema.yml b/core/modules/update/tests/modules/update_test/config/schema/update_test.schema.yml new file mode 100644 index 000000000000..cbe32d43757c --- /dev/null +++ b/core/modules/update/tests/modules/update_test/config/schema/update_test.schema.yml @@ -0,0 +1,24 @@ +# Schema for the configuration files of the Update Test module. + +update_test.settings: + type: mapping + label: 'Update test settings' + mapping: + system_info: + type: seqeuence + label: 'System info' + sequence: + - type: string + label: 'Value' + update_status: + type: seqeuence + label: 'Update status' + sequence: + - type: string + label: 'Value' + xml_map: + type: seqeuence + label: 'XML map' + sequence: + - type: string + label: 'Value' diff --git a/core/modules/update/tests/modules/update_test/config/update_test.settings.yml b/core/modules/update/tests/modules/update_test/config/update_test.settings.yml index a52338adb700..ff35651e585e 100644 --- a/core/modules/update/tests/modules/update_test/config/update_test.settings.yml +++ b/core/modules/update/tests/modules/update_test/config/update_test.settings.yml @@ -1,3 +1,3 @@ system_info: [] update_status: [] -xml_map: '0' +xml_map: [] diff --git a/core/modules/user/config/entity.view_mode.user.full.yml b/core/modules/user/config/entity.view_mode.user.full.yml index 7110416b5d2a..4f9e564a06fa 100644 --- a/core/modules/user/config/entity.view_mode.user.full.yml +++ b/core/modules/user/config/entity.view_mode.user.full.yml @@ -1,6 +1,6 @@ id: user.full uuid: 021fa7ab-8e19-4ab7-8c4e-b68edcfacb52 -label: User account +label: 'User account' status: false cache: true targetEntityType: user diff --git a/core/modules/user/config/schema/user.schema.yml b/core/modules/user/config/schema/user.schema.yml index 5aec5a2909c7..23a688a1785c 100644 --- a/core/modules/user/config/schema/user.schema.yml +++ b/core/modules/user/config/schema/user.schema.yml @@ -143,3 +143,30 @@ user.role.*: langcode: type: string label: 'Default language' + +action.configuration.user_add_role_action: + type: action_configuration_default + label: 'Add a role to the selected users configuration' + +action.configuration.user_block_user_action: + type: action_configuration_default + label: 'Block the selected users configuration' + +action.configuration.user_cancel_user_action: + type: action_configuration_default + label: 'Cancel the selected user accounts configuration' + +action.configuration.user_remove_role_action: + type: mapping + label: 'Remove a role from the selected users configuration' + mapping: + rid: + type: sequence + label: 'Roles' + sequence: + - type: sequence + label: 'Role' + +action.configuration.user_unblock_user_action: + type: action_configuration_default + label: 'Unblock the selected users configuration' diff --git a/core/modules/user/config/schema/user.view.schema.yml b/core/modules/user/config/schema/user.view.schema.yml deleted file mode 100644 index 24299066abd2..000000000000 --- a/core/modules/user/config/schema/user.view.schema.yml +++ /dev/null @@ -1,34 +0,0 @@ -# Schema for the views plugins of the User module. - -views.argument_validator.user: - type: mapping - label: 'User' - mapping: - type: - type: string - label: 'Type of user filter value to allow' - restrict_roles: - type: boolean - label: 'Restrict user based on role' - roles: - type: sequence - label: 'Restrict to the selected roles' - sequence: - - type: string - label: 'Role' - -views.argument_default.user: - type: mapping - label: 'User ID from URL' - mapping: - user: - type: boolean - label: 'Also look for a node and use the node author' - -views.argument_default.current_user: - type: boolean - label: 'User ID from logged in user' - -views.argument_default.node: - type: boolean - label: 'Content ID from URL' diff --git a/core/modules/user/config/schema/user.views.schema.yml b/core/modules/user/config/schema/user.views.schema.yml new file mode 100644 index 000000000000..55ea1c4f14c2 --- /dev/null +++ b/core/modules/user/config/schema/user.views.schema.yml @@ -0,0 +1,146 @@ +# Schema for the views plugins of the User module. + +views.access.perm: + type: mapping + label: 'Permission' + mapping: + perm: + type: string + label: 'Permission' + +views.access.role: + type: sequence + label: 'Role' + sequence: + - type: string + label: 'Role' + +views.argument.user_uid: + type: views.argument.numeric + label: 'User ID' + +views.argument.users_roles_rid: + type: views.argument.many_to_one + label: 'Role ID' + +views.argument_validator.user: + type: mapping + label: 'User' + mapping: + type: + type: string + label: 'Type of user filter value to allow' + restrict_roles: + type: boolean + label: 'Restrict user based on role' + roles: + type: sequence + label: 'Restrict to the selected roles' + sequence: + - type: string + label: 'Role' + +views.argument_default.user: + type: mapping + label: 'User ID from URL' + mapping: + user: + type: boolean + label: 'Also look for a node and use the node author' + +views.argument_default.current_user: + type: boolean + label: 'User ID from logged in user' + +views.argument_default.node: + type: boolean + label: 'Content ID from URL' + +"views.row.entity:user": + type: views_entity_row + label: 'Entity options' + +views_field_user: + type: views_field + mapping: + link_to_user: + type: boolean + label: 'Link this field to its user' + +views.field.user_language: + type: views_field + label: 'User language' + mapping: + link_to_node: + type: boolean + label: 'Link this field to its user' + +views.field.user_language: + type: views_field_user + label: 'User language' + +views.field.user_link: + type: views_field + label: 'User link' + mapping: + text: + type: text + label: 'Text to display' + +views.field.user_link_cancel: + type: views.field.user_link + label: 'User cancel link' + +views.field.user_link_edit: + type: views.field.user_link + label: 'User edit link' + +views.field.user_mail: + type: views_field_user + label: 'User language' + +views.field.user_name: + type: views_field_user + label: 'User name' + mapping: + format_username: + type: boolean + label: 'Use formatted username' + overwrite_anonymous: + type: boolean + label: 'Overwrite the value to display for anonymous users' + anonymous_text: + type: label + label: 'Text to display for anonymous users' + +views.field.user_permissions: + type: views.field.prerender_list + label: 'List of permission' + +views.field.user_roles: + type: views.field.prerender_list + label: 'List of roles' + +views.field.user: + type: views_field_user + label: 'User' + +views.field.user_bulk_form: + type: views_field_bulk_form + label: 'User operations bulk form' + +views.filter.user_current: + type: views.filter.boolean + label: 'Current user' + +views.filter.user_name: + type: views.filter.in_operator + label: 'User name' + +views.filter.user_permissions: + type: views.filter.many_to_one + label: 'Permission' + +views.filter.user_roles: + type: views.filter.many_to_one + label: 'Role' diff --git a/core/modules/user/config/search.page.user_search.yml b/core/modules/user/config/search.page.user_search.yml index 4823ec4c4fb9..b78c6993e91b 100644 --- a/core/modules/user/config/search.page.user_search.yml +++ b/core/modules/user/config/search.page.user_search.yml @@ -1,5 +1,5 @@ id: user_search -label: 'Users' +label: Users uuid: c0d6b9a7-09a7-415f-b71a-26957bef635c status: true langcode: en diff --git a/core/modules/user/config/system.action.user_block_user_action.yml b/core/modules/user/config/system.action.user_block_user_action.yml index 8a63a79417ba..19453b6a1356 100644 --- a/core/modules/user/config/system.action.user_block_user_action.yml +++ b/core/modules/user/config/system.action.user_block_user_action.yml @@ -1,7 +1,7 @@ id: user_block_user_action uuid: 0e67a49a-8d5b-468c-9702-2eeb1441f45a label: 'Block the selected user(s)' -status: '1' +status: true langcode: en type: user plugin: user_block_user_action diff --git a/core/modules/user/config/system.action.user_cancel_user_action.yml b/core/modules/user/config/system.action.user_cancel_user_action.yml index b4c9b86c3fcf..92cb62ec4875 100644 --- a/core/modules/user/config/system.action.user_cancel_user_action.yml +++ b/core/modules/user/config/system.action.user_cancel_user_action.yml @@ -1,7 +1,7 @@ id: user_cancel_user_action uuid: 73748b91-e690-455e-b949-73fdd60742a8 label: 'Cancel the selected user account(s)' -status: '1' +status: true langcode: en type: user plugin: user_cancel_user_action diff --git a/core/modules/user/config/system.action.user_unblock_user_action.yml b/core/modules/user/config/system.action.user_unblock_user_action.yml index fda803e6e224..3119149d0b8e 100644 --- a/core/modules/user/config/system.action.user_unblock_user_action.yml +++ b/core/modules/user/config/system.action.user_unblock_user_action.yml @@ -1,7 +1,7 @@ id: user_unblock_user_action uuid: c97b142f-d25a-41af-ae06-6a535b880ba8 label: 'Unblock the selected user(s)' -status: '1' +status: true langcode: en type: user plugin: user_unblock_user_action diff --git a/core/modules/user/config/views.view.user_admin_people.yml b/core/modules/user/config/views.view.user_admin_people.yml index c2aab003d10b..50506c6d63ec 100644 --- a/core/modules/user/config/views.view.user_admin_people.yml +++ b/core/modules/user/config/views.view.user_admin_people.yml @@ -47,14 +47,14 @@ display: first: '« first' last: 'last »' 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 - quantity: '9' + quantity: 9 style: type: table options: @@ -236,10 +236,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: @@ -554,7 +554,6 @@ display: empty_zero: false hide_alter_empty: true text: Translate - optional: '1' plugin_id: content_translation_link provider: content_translation dropbutton: @@ -614,7 +613,7 @@ display: rid: '0' created: '0' access: '0' - destination: '1' + destination: true plugin_id: dropbutton mail: id: mail @@ -664,7 +663,7 @@ display: hide_empty: false empty_zero: false hide_alter_empty: true - link_to_user: '0' + link_to_user: false plugin_id: user_mail filters: combine: @@ -676,7 +675,7 @@ display: admin_label: '' operator: contains value: '' - group: '1' + group: 1 exposed: true expose: operator_id: combine_op @@ -700,7 +699,7 @@ display: optional: true widget: select multiple: false - remember: 0 + remember: false default_group: All default_group_multiple: { } group_items: { } @@ -717,7 +716,7 @@ display: admin_label: '' operator: or value: { } - group: '1' + group: 1 exposed: true expose: operator_id: rid_op @@ -733,7 +732,7 @@ display: authenticated: authenticated anonymous: '0' administrator: '0' - reduce: '0' + reduce: false is_grouped: false group_info: label: '' @@ -742,11 +741,11 @@ display: optional: true widget: select multiple: false - remember: 0 + remember: false default_group: All default_group_multiple: { } group_items: { } - reduce_duplicates: '0' + reduce_duplicates: false plugin_id: user_roles provider: user permission: @@ -758,7 +757,7 @@ display: admin_label: '' operator: or value: { } - group: '1' + group: 1 exposed: true expose: operator_id: permission_op @@ -774,7 +773,7 @@ display: authenticated: authenticated anonymous: '0' administrator: '0' - reduce: '0' + reduce: false is_grouped: false group_info: label: '' @@ -783,11 +782,11 @@ display: optional: true widget: select multiple: false - remember: 0 + remember: false default_group: All default_group_multiple: { } group_items: { } - reduce_duplicates: '0' + reduce_duplicates: false plugin_id: user_permissions provider: user status: @@ -798,8 +797,8 @@ display: group_type: group admin_label: '' operator: '=' - value: All - group: '1' + value: true + group: 1 exposed: true expose: operator_id: '' @@ -823,7 +822,7 @@ display: optional: true widget: select multiple: false - remember: 0 + remember: false default_group: All default_group_multiple: { } group_items: @@ -849,7 +848,7 @@ display: min: '' max: '' value: '0' - group: '1' + group: 1 exposed: false expose: operator_id: '0' @@ -871,7 +870,7 @@ display: optional: true widget: select multiple: false - remember: 0 + remember: false default_group: All default_group_multiple: { } group_items: { } @@ -906,14 +905,14 @@ display: content: 'No people available.' plugin_id: text_custom provider: views - use_more: '0' - use_more_always: '0' + use_more: false + use_more_always: false use_more_text: more display_comment: '' - use_ajax: '0' - hide_attachment_summary: '0' - show_admin_links: '1' - group_by: '0' + use_ajax: false + hide_attachment_summary: false + show_admin_links: true + group_by: false link_url: '' link_display: page_1 css_class: '' @@ -928,14 +927,14 @@ display: position: 1 display_options: path: admin/people/list - show_admin_links: '0' + show_admin_links: false menu: type: 'default tab' title: List description: 'Find and manage people interacting with your site.' name: admin weight: -10 - context: '0' + context: '' tab_options: type: normal title: People diff --git a/core/modules/user/config/views.view.who_s_new.yml b/core/modules/user/config/views.view.who_s_new.yml index 3ca47b3f45c8..e3f9e2b40ab5 100644 --- a/core/modules/user/config/views.view.who_s_new.yml +++ b/core/modules/user/config/views.view.who_s_new.yml @@ -2,54 +2,53 @@ base_field: uid base_table: users core: 8.x description: 'Shows a list of the newest user accounts on the site.' -status: '1' +status: true display: block_1: display_plugin: block id: block_1 display_title: 'Who''s new' - position: '1' + position: 1 display_options: display_description: 'A list of new users' block_description: 'Who''s new' - block_category: 'User' + block_category: User default: display_plugin: default id: default display_title: Master - position: '1' + position: 1 display_options: access: type: perm options: perm: 'access content' - perm: 'access user profiles' cache: type: none options: { } 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: '5' - offset: '0' + items_per_page: 5 + offset: 0 style: type: html_list row: @@ -60,44 +59,46 @@ display: table: users field: name label: '' + plugin_id: user_name 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_user: '1' - overwrite_anonymous: '0' + 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_user: true + overwrite_anonymous: false 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 anonymous_text: '' - format_username: '1' + format_username: true filters: status: - value: '1' + value: true table: users field: status id: status expose: operator: '0' - group: '1' + group: 1 + plugin_id: boolean access: id: access table: users @@ -111,29 +112,29 @@ display: max: '' value: '1970-01-01' type: date - group: '1' - exposed: '0' + 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: { } @@ -147,7 +148,7 @@ display: group_type: group admin_label: '' order: DESC - exposed: '0' + exposed: false expose: label: '' granularity: second @@ -161,6 +162,6 @@ display: label: 'Who''s new' module: views id: who_s_new -tag: 'default' +tag: default uuid: 8b2c05e3-046b-447f-922b-43a832220667 langcode: en diff --git a/core/modules/user/config/views.view.who_s_online.yml b/core/modules/user/config/views.view.who_s_online.yml index 898de168f262..8665ae0fd866 100644 --- a/core/modules/user/config/views.view.who_s_online.yml +++ b/core/modules/user/config/views.view.who_s_online.yml @@ -2,13 +2,13 @@ base_field: uid base_table: users core: 8.x description: 'Shows the user names of the most recently active users, and the total number of active users.' -status: '1' +status: true display: default: display_plugin: default id: default display_title: Master - position: '1' + position: 1 display_options: access: type: perm @@ -20,33 +20,33 @@ 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: html_list options: grouping: { } row_class: '' - default_row_class: '1' - row_class_special: '1' + default_row_class: true + row_class_special: true type: ul wrapper_class: item-list class: '' @@ -58,44 +58,46 @@ display: table: users field: name label: '' + plugin_id: user_name 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_user: '1' - overwrite_anonymous: '0' + 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_user: true + overwrite_anonymous: false 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 anonymous_text: '' - format_username: '1' + format_username: true filters: status: - value: '1' + value: true table: users field: status id: status expose: operator: '0' - group: '1' + group: 1 + plugin_id: boolean access: id: access table: users @@ -109,31 +111,31 @@ display: max: '' value: '-15 minutes' type: offset - group: '1' - exposed: '0' + group: 1 + exposed: false expose: operator_id: access_op label: 'Last access' description: 'A user is considered online for this long after they have last viewed a page.' - use_operator: '0' + use_operator: false operator: access_op identifier: access - required: '0' - remember: '0' - multiple: '0' + required: false + remember: false + multiple: false remember_roles: authenticated: authenticated anonymous: '0' administrator: '0' - 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: { } @@ -147,7 +149,7 @@ display: relationship: none group_type: group admin_label: '' - exposed: '0' + exposed: false expose: label: '' granularity: second @@ -162,7 +164,7 @@ display: relationship: none group_type: group admin_label: '' - empty: '0' + empty: false content: 'There are currently @total users online.' plugin_id: result footer: { } @@ -174,8 +176,8 @@ display: relationship: none group_type: group admin_label: '' - empty: '1' - tokenize: '0' + empty: true + tokenize: false content: 'There are currently 0 users online.' plugin_id: text_custom relationships: { } @@ -184,7 +186,7 @@ display: display_plugin: block id: who_s_online_block display_title: 'Who''s online' - position: '1' + position: 1 display_options: block_description: 'Who''s online' display_description: 'A list of users that are currently logged in.' diff --git a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_access_perm.yml b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_access_perm.yml index bd1ed7255de2..3505caa3f4a7 100644 --- a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_access_perm.yml +++ b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_access_perm.yml @@ -22,7 +22,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_access_perm tag: '' diff --git a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_access_role.yml b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_access_role.yml index f971f75de3c3..daa39d4552c7 100644 --- a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_access_role.yml +++ b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_access_role.yml @@ -26,14 +26,14 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: path: test-role display_plugin: page display_title: Page id: page_1 - position: '1' + position: 1 label: '' id: test_access_role tag: '' diff --git a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_field_permission.yml b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_field_permission.yml index 94f587dc69f6..79ce55101fe4 100644 --- a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_field_permission.yml +++ b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_field_permission.yml @@ -8,7 +8,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: none diff --git a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_filter_permission.yml b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_filter_permission.yml index ef1fd1c33b36..b16cb3eb581e 100644 --- a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_filter_permission.yml +++ b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_filter_permission.yml @@ -8,7 +8,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: none diff --git a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_plugin_argument_default_current_user.yml b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_plugin_argument_default_current_user.yml index dede3131e43a..1a3362f20118 100644 --- a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_plugin_argument_default_current_user.yml +++ b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_plugin_argument_default_current_user.yml @@ -51,7 +51,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_plugin_argument_default_current_user tag: '' diff --git a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_bulk_form.yml b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_bulk_form.yml index d6c7538fa0cd..3327603c7ee6 100644 --- a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_bulk_form.yml +++ b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_bulk_form.yml @@ -8,7 +8,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: style: type: table @@ -48,7 +48,7 @@ display: display_plugin: page id: page_1 display_title: Page - position: '' + position: null display_options: path: test-user-bulk-form label: '' diff --git a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_data.yml b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_data.yml index 725724d34f0b..f1a785cd41e3 100644 --- a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_data.yml +++ b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_data.yml @@ -8,7 +8,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm diff --git a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_name.yml b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_name.yml index 0d2985c28ea5..b1efe81dd473 100644 --- a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_name.yml +++ b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_name.yml @@ -41,14 +41,14 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: path: test_user_name display_plugin: page display_title: Page id: page_1 - position: '0' + position: 0 label: '' id: test_user_name tag: '' diff --git a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_relationship.yml b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_relationship.yml index ff0c37b74296..56e1a0beef5a 100644 --- a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_relationship.yml +++ b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_relationship.yml @@ -101,7 +101,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: test_user_relationship id: test_user_relationship tag: default diff --git a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_uid_argument.yml b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_uid_argument.yml index 66f162e3d82c..388d154d08bd 100644 --- a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_uid_argument.yml +++ b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_user_uid_argument.yml @@ -24,6 +24,6 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: null id: test_user_uid_argument diff --git a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_view_argument_validate_user.yml b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_view_argument_validate_user.yml index eb1180838037..c429718a244c 100644 --- a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_view_argument_validate_user.yml +++ b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_view_argument_validate_user.yml @@ -32,7 +32,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_view_argument_validate_user tag: '' diff --git a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_views_handler_field_role.yml b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_views_handler_field_role.yml index 3e333a914cf4..c3b3258fff5b 100644 --- a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_views_handler_field_role.yml +++ b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_views_handler_field_role.yml @@ -8,7 +8,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm @@ -151,7 +151,7 @@ display: display_plugin: page id: page_1 display_title: Page - position: '' + position: null display_options: path: test-views-handler-field-role label: test_views_handler_field_role diff --git a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_views_handler_field_user_name.yml b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_views_handler_field_user_name.yml index c68cde3169c0..801198895e1e 100644 --- a/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_views_handler_field_user_name.yml +++ b/core/modules/user/tests/modules/user_test_views/test_views/views.view.test_views_handler_field_user_name.yml @@ -45,7 +45,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: test_views_handler_field_user_name id: test_views_handler_field_user_name tag: default diff --git a/core/modules/views/config/schema/views.access.schema.yml b/core/modules/views/config/schema/views.access.schema.yml index 2dc6d906d236..c09edef440cf 100644 --- a/core/modules/views/config/schema/views.access.schema.yml +++ b/core/modules/views/config/schema/views.access.schema.yml @@ -5,18 +5,3 @@ views.access.none: label: 'None' sequence: - type: string - -views.access.perm: - type: mapping - label: 'Permission' - mapping: - perm: - type: string - label: 'Permission' - -views.access.role: - type: sequence - label: 'Role' - sequence: - - type: string - label: 'Role' diff --git a/core/modules/views/config/schema/views.argument.schema.yml b/core/modules/views/config/schema/views.argument.schema.yml index 2d6729b8d683..92aa47792f1a 100644 --- a/core/modules/views/config/schema/views.argument.schema.yml +++ b/core/modules/views/config/schema/views.argument.schema.yml @@ -65,3 +65,81 @@ views.argument.string: require_value: type: boolean label: 'Do not display items with no value in summary' + + +views.argument.broken: + type: views_argument + label: 'Broken' + +views.argument.date: + type: views_argument + label: 'Date' + mapping: + date: + type: string + label: 'Date' + node_created: + type: string + label: 'Node Creation Time' + node_changed: + type: string + label: 'Node Update Time' + +views.argument.date_day: + type: views.argument.date + label: 'Day Date' + mapping: + day: + type: string + label: 'Day' + +views.argument.formula: + type: views_argument + label: 'Formula' + mapping: + placeholder: + type: string + label: 'Place Holder' + formula: + type: string + label: 'Formula Used' + +views.argument.date_fulldate: + type: views.argument.date + label: 'Full Date' + mapping: + created: + type: string + label: 'Full Date' + +views.argument.groupby_numeric: + type: views_argument + label: 'Group by Numeric' + +views.argument.date_month: + type: views.argument.date + label: 'Month Date' + mapping: + month: + type: string + label: 'Month' + +views.argument.standard: + type: views_argument + label: 'Standard' + +views.argument.date_week: + type: views.argument.date + label: 'Week Date' + +views.argument.date_year: + type: views.argument.date + label: 'Year Date' + +views.argument.date_year_month: + type: views.argument.date + label: 'YearMonthDate' + mapping: + created: + type: string + label: 'Date Year month' diff --git a/core/modules/views/config/schema/views.argument_validator.schema.yml b/core/modules/views/config/schema/views.argument_validator.schema.yml index 5bf1a2dbf4a1..3dbc9d7fe904 100644 --- a/core/modules/views/config/schema/views.argument_validator.schema.yml +++ b/core/modules/views/config/schema/views.argument_validator.schema.yml @@ -17,3 +17,19 @@ views.argument_validator.php: views.argument_validator.numeric: type: boolean label: 'Numeric' + +views.argument_validator_entity: + type: mapping + mapping: + bundles: + type: boolean + label: 'Bundles' + access: + type: boolean + label: 'Access' + operation: + type: string + label: 'Access operation to check' + multiple: + type: integer + label: 'Multiple arguments' diff --git a/core/modules/views/config/schema/views.data_types.schema.yml b/core/modules/views/config/schema/views.data_types.schema.yml index 4c100486f531..4f3a87e27c14 100644 --- a/core/modules/views/config/schema/views.data_types.schema.yml +++ b/core/modules/views/config/schema/views.data_types.schema.yml @@ -64,6 +64,19 @@ views_display: label: 'Filters' sequence: - type: views.filter.[plugin_id] + filter_groups: + type: mapping + label: 'Groups' + mapping: + operator: + type: string + label: 'Operator' + groups: + type: sequence + label: 'Groups' + sequence: + - type: string + label: 'Operator' style: type: mapping label: 'Format' @@ -93,6 +106,9 @@ views_display: type: mapping label: 'Defaults' mapping: + empty: + type: boolean + label: 'Empty' access: type: boolean label: 'Access restrictions' @@ -109,7 +125,7 @@ views_display: type: boolean label: 'CSS class' display_description: - type: boolean + type: label label: 'Administrative description' use_ajax: type: boolean @@ -176,35 +192,65 @@ views_display: label: 'Relationships' sequence: - type: views.relationship.[plugin_id] - -views_sort: - type: mapping - label: 'Sort criteria' - mapping: - id: - type: string - label: 'ID' - table: + css_class: type: string - label: 'Table name' - field: + label: 'CSS class' + use_ajax: + type: boolean + label: 'Use AJAX' + group_by: + type: boolean + label: 'Aggregate' + display_description: + type: label + label: 'Administrative description' + show_admin_links: + type: boolean + label: 'Show contextual links' + use_more: + type: boolean + label: 'Create more link' + use_more_always: + type: boolean + label: 'Display ''more'' link only if there is more content' + use_more_text: type: string - label: 'Field name' - relationship: + label: 'The text to display for the more link.' + link_display: type: string - label: 'Relationship' - group_type: + label: 'Link display' + link_url: type: string - label: 'Group type' - admin_label: + label: 'Link URL' + pager_options: + type: boolean + label: 'Pager options' + header: + type: sequence + label: 'Header' + sequence: + - type: views.area.[plugin_id] + footer: + type: sequence + label: 'Footer' + sequence: + - type: views.area.[plugin_id] + display_comment: type: label - label: 'Administrative title' + label: 'Display comment' + hide_attachment_summary: + type: boolean + label: 'Hide attachments in summary' + +views_sort: + type: views_handler + label: 'Sort criteria' + mapping: order: type: string label: 'Sort order' expose: type: views.sort_expose.[%parent.plugin_id] - label: 'Expose settings' exposed: type: boolean label: 'Expose this sort to visitors, to allow them to change it' @@ -212,6 +258,13 @@ views_sort: type: string label: 'Plugin ID' +views_sort_expose: + type: mapping + mapping: + label: + type: label + label: 'Label' + views_area: type: views_handler label: 'Area' @@ -222,6 +275,9 @@ views_area: empty: type: boolean label: 'Should the area be displayed on empty results.' + plugin_id: + type: string + label: 'Plugin ID' views_handler: type: mapping @@ -244,6 +300,12 @@ views_handler: admin_label: type: label label: 'A string to identify the handler instance in the admin UI.' + provider: + type: string + label: 'Provider' + optional: + type: boolean + label: 'Optional' views_argument: type: views_handler @@ -334,6 +396,9 @@ views_argument: plugin_id: type: string label: 'Plugin ID' + provider: + type: string + label: 'Provider' views_exposed_form: @@ -488,6 +553,12 @@ views_field: hide_alter_empty: type: boolean label: 'Hide rewriting if empty' + plugin_id: + type: string + label: 'Plugin ID' + provider: + type: string + label: 'Provider' views_pager: type: mapping @@ -496,6 +567,9 @@ views_pager: offset: type: integer label: 'Offset' + items_per_page: + type: integer + label: 'Items per page' views_pager_sql: type: views_pager @@ -520,10 +594,16 @@ views_pager_sql: previous: type: label label: 'Previous page link text' + quantity: + type: integer + label: 'Number of pager links visible' expose: type: mapping label: 'Exposed options' mapping: + items_per_page: + type: boolean + label: 'Items per page' items_per_page_label: type: label label: 'Items per page label' @@ -582,10 +662,10 @@ views_filter: type: string label: 'Operator' value: - type: views.filter_value.[plugin_id] + type: views.filter_value.[%parent.plugin_id] label: 'Value' group: - type: string + type: integer label: 'Group' exposed: type: boolean @@ -653,7 +733,7 @@ views_filter: type: boolean label: 'Allow multiple selections' remember: - type: integer + type: boolean label: 'Remember' default_group: type: string @@ -670,19 +750,25 @@ views_filter: plugin_id: type: string label: 'Plugin ID' - filter_groups: - type: mapping - label: 'Groups' + provider: + type: string + label: 'Provider' + +views_filter_group_items: + type: sequence + sequence: + - type: mapping + label: 'Group item' mapping: + title: + type: label + label: 'Label' operator: type: string label: 'Operator' - groups: - type: sequence - label: 'Groups' - sequence: - - type: string - label: 'Operator' + value: + type: label + label: 'Value' views_relationship: type: mapping @@ -711,6 +797,9 @@ views_relationship: required: type: boolean label: 'Require this relationship' + provider: + type: string + label: 'Provider' views_query: type: mapping @@ -734,3 +823,18 @@ views_query: sequence: - type: string label: 'Tag' + +views_row: + type: mapping + label: 'Row' + mapping: + relationship: + type: string + label: 'Relationship' + +views_entity_row: + type: views_row + mapping: + view_mode: + type: string + label: 'View mode' diff --git a/core/modules/views/config/schema/views.display.schema.yml b/core/modules/views/config/schema/views.display.schema.yml index 601c22940cda..5bd1ab35216d 100644 --- a/core/modules/views/config/schema/views.display.schema.yml +++ b/core/modules/views/config/schema/views.display.schema.yml @@ -4,9 +4,8 @@ views.display.default: type: views_display label: 'Default display options' -views.display.page: +views_display_path: type: views_display - label: 'Page display options' mapping: path: type: string @@ -14,6 +13,11 @@ views.display.page: route_name: type: string label: 'Route name' + +views.display.page: + type: views_display_path + label: 'Page display options' + mapping: menu: type: mapping label: 'Menu' @@ -56,27 +60,10 @@ views.display.page: type: string label: 'Menu name' -views.display.block: - type: views_display - label: 'Block display options' - mapping: - block_description: - type: text - label: 'Block name' - block_category: - type: text - label: 'Block category' - block_caching: - type: boolean - label: 'Block caching' - views.display.feed: - type: views_display + type: views_display_path label: 'Feed display options' mapping: - path: - type: string - label: 'Page path' sitename_title: type: boolean label: 'Use the site name for the title' @@ -86,6 +73,9 @@ views.display.feed: sequence: - type: string label: 'Display' + display_description: + type: text + label: 'Display description' views.display.embed: type: views_display diff --git a/core/modules/views/config/schema/views.field.schema.yml b/core/modules/views/config/schema/views.field.schema.yml index 8f0684d3fef1..595461bcaa12 100644 --- a/core/modules/views/config/schema/views.field.schema.yml +++ b/core/modules/views/config/schema/views.field.schema.yml @@ -51,6 +51,14 @@ views.field.date: type: string label: 'Timezone' +views.field.entity_label: + type: views_field + label: 'Entity label' + mapping: + link_to_entity: + type: boolean + label: 'Link to entity' + views.field.file_size: type: views_field label: 'File size' @@ -64,12 +72,19 @@ views.field.links: label: 'Links' mapping: fields: - type: string + type: sequence label: 'Fields' + sequence: + - type: string + label: 'Field' destination: type: boolean label: 'Include destination' +views.field.dropbutton: + type: views.field.links + label: 'Drop button' + views.field.machine_name: type: views_field label: 'Machine name' @@ -78,6 +93,10 @@ views.field.machine_name: type: boolean label: 'Output machine name' +views.field.markup: + type: views_field + label: 'Markup' + views.field.numeric: type: views_field label: 'Numeric' @@ -151,3 +170,7 @@ views.field.url: display_as_link: type: boolean label: 'Display as link' + +views.field.xss: + type: views_field + label: 'Xss' diff --git a/core/modules/views/config/schema/views.filter.schema.yml b/core/modules/views/config/schema/views.filter.schema.yml index ee78fd41351c..4f4f77a6b0c5 100644 --- a/core/modules/views/config/schema/views.filter.schema.yml +++ b/core/modules/views/config/schema/views.filter.schema.yml @@ -4,15 +4,13 @@ views.filter.*: type: views_filter label: 'Default filter' -views_filter_boolean: +views.filter.boolean: type: views_filter - mapping: - value: - type: boolean - label: 'Value' + label: 'Boolean' views_filter_boolean_string: - type: views_filter_boolean + type: views_filter + label: 'Boolean string' views.filter.broken: type: views_filter @@ -20,16 +18,27 @@ views.filter.broken: views.filter.bundle: type: views.filter.in_operator - label: 'Broken' + label: 'Bundle' views.filter.combine: type: views.filter.string label: 'Combine' + mapping: + fields: + type: sequence + label: 'Fields' + sequence: + - type: string + label: 'Field' views.filter.date: type: views.filter.numeric label: 'Date' +views.filter.groupby_numeric: + type: views.filter.numeric + label: 'Group by numeric' + views.filter.in_operator: type: views_filter label: 'IN operator' @@ -62,6 +71,9 @@ views.filter.string: required: type: boolean label: 'Required' + value: + type: string + label: 'Value' views.filter.numeric: type: views_filter @@ -86,7 +98,7 @@ views.filter.numeric: views.filter.equality: type: views.filter.numeric - label: 'Broken' + label: 'Equality' views.filter.many_to_one: type: views.filter.in_operator @@ -95,6 +107,9 @@ views.filter.many_to_one: operator: type: string label: 'Operator' + reduce_duplicates: + type: boolean + label: 'Reduce duplicate' value: type: sequence label: 'Values' @@ -102,19 +117,26 @@ views.filter.many_to_one: - type: string label: 'Value' +views.filter.standard: + type: views_filter + label: 'Standard' + +views.filter.group_items.*: + type: views_filter_group_items + label: 'Default' + views.filter.group_items.string: - type: sequence + type: views_filter_group_items + label: 'String group items' + +views.filter.group_items.boolean: + type: views_filter_group_items label: 'Group items' - sequence: - - type: mapping - label: 'Group item' - mapping: - title: - type: label - label: 'Label' - operator: - type: string - label: 'Operator' - value: - type: label - label: 'Value' + +# Schema for the views filter value. + +views.filter_value.boolean: + type: boolean + +views.filter_value.combine: + type: string diff --git a/core/modules/views/config/schema/views.filter_value.schema.yml b/core/modules/views/config/schema/views.filter_value.schema.yml deleted file mode 100644 index a59fc46c3770..000000000000 --- a/core/modules/views/config/schema/views.filter_value.schema.yml +++ /dev/null @@ -1,5 +0,0 @@ -# Schema for the views filter value. - -views.filter_value.boolean: - type: boolean - label: 'value' diff --git a/core/modules/views/config/schema/views.pager.schema.yml b/core/modules/views/config/schema/views.pager.schema.yml index 4d171df6f5b7..eb360227e029 100644 --- a/core/modules/views/config/schema/views.pager.schema.yml +++ b/core/modules/views/config/schema/views.pager.schema.yml @@ -11,10 +11,6 @@ views.pager.none: views.pager.some: type: views_pager label: 'Display a specified number of items' - mapping: - items_per_page: - type: integer - label: 'Items per page' views.pager.mini: type: views_pager_sql @@ -34,3 +30,6 @@ views.pager.full: last: type: label label: 'Last page link text' + quantity: + type: integer + label: 'Number of pager links visible' diff --git a/core/modules/views/config/schema/views.relationship.schema.yml b/core/modules/views/config/schema/views.relationship.schema.yml index 72cebaae3c28..61643b27226c 100644 --- a/core/modules/views/config/schema/views.relationship.schema.yml +++ b/core/modules/views/config/schema/views.relationship.schema.yml @@ -1,5 +1,9 @@ # Schema for the views relationship. +views.relationship.*: + type: views_relationship + label: 'Standard' + views.relationship.standard: type: views_relationship label: 'Standard' diff --git a/core/modules/views/config/schema/views.row.schema.yml b/core/modules/views/config/schema/views.row.schema.yml index 0f20dc07b711..9eff5048347b 100644 --- a/core/modules/views/config/schema/views.row.schema.yml +++ b/core/modules/views/config/schema/views.row.schema.yml @@ -1,11 +1,11 @@ # Schema for the views row. views.row.fields: - type: mapping + type: views_row label: 'Field options' mapping: default_field_elements: - type: string + type: boolean label: 'Provide default field wrapper elements' inline: type: sequence @@ -19,3 +19,33 @@ views.row.fields: hide_empty: type: boolean label: 'Hide empty' + +views.row.rss_fields: + type: mapping + label: 'RSS field options' + mapping: + title_field: + type: string + label: 'Title field' + link_field: + type: string + label: 'Link field' + description_field: + type: string + label: 'Description field' + creator_field: + type: string + label: 'Creator field' + date_field: + type: string + label: 'Publication date field' + guid_field_options: + type: mapping + label: 'Guid settings' + mapping: + guid_field: + type: string + label: 'GUID field' + guid_field_is_permalink: + type: boolean + label: 'GUID is permalink' diff --git a/core/modules/views/config/schema/views.schema.yml b/core/modules/views/config/schema/views.schema.yml index 66713b575f59..a9a7eaf4827e 100644 --- a/core/modules/views/config/schema/views.schema.yml +++ b/core/modules/views/config/schema/views.schema.yml @@ -72,12 +72,15 @@ views.view.*: type: mapping label: 'View' mapping: + langcode: + type: string + label: 'Default language' status: type: boolean label: 'Status' module: label: 'Module' - name: + id: label: 'Machine name' description: type: text diff --git a/core/modules/views/config/schema/views.sort.schema.yml b/core/modules/views/config/schema/views.sort.schema.yml index 76a3f5a9fb61..e61c3d2fe820 100644 --- a/core/modules/views/config/schema/views.sort.schema.yml +++ b/core/modules/views/config/schema/views.sort.schema.yml @@ -11,3 +11,41 @@ views.sort.boolean: views.sort.date: type: views_sort label: 'Date sort' + mapping: + granularity: + type: string + label: 'Granularity' + +views.sort.broken: + type: views_sort + label: 'Broken' + +views.sort.random: + type: views_sort + label: 'Random' + +views.sort.standard: + type: views_sort + label: 'Standard' + +# Schema for the views sort expose. + +views.sort_expose.boolean: + type: views_sort_expose + label: 'Boolean sort expose settings' + +views.sort_expose.date: + type: views_sort_expose + label: 'Date sort expose settings' + +views.sort_expose.standard: + type: views_sort_expose + label: 'Standard sort expose settings' + mapping: + order: + type: string + label: 'Order' + +views.sort_expose.random: + type: views.sort_expose.standard + label: 'Random sort expose settings' diff --git a/core/modules/views/config/schema/views.sort_expose.schema.yml b/core/modules/views/config/schema/views.sort_expose.schema.yml deleted file mode 100644 index 57a8e70167bc..000000000000 --- a/core/modules/views/config/schema/views.sort_expose.schema.yml +++ /dev/null @@ -1,8 +0,0 @@ -# Schema for the views sort expose. - -views.sort_expose.boolean: - type: mapping - mapping: - label: - type: label - label: 'Label' diff --git a/core/modules/views/config/schema/views.style.schema.yml b/core/modules/views/config/schema/views.style.schema.yml index dc6edd0b225b..98a8ea7d6ddd 100644 --- a/core/modules/views/config/schema/views.style.schema.yml +++ b/core/modules/views/config/schema/views.style.schema.yml @@ -101,10 +101,15 @@ views.style.table: empty_table: type: boolean label: 'Show the empty text in the table' - + caption: + type: label + label: 'Caption' + description: + type: text + label: 'Caption' views.style.default_summary: - type: mapping + type: views_style label: 'Summary options' mapping: base_path: @@ -121,7 +126,7 @@ views.style.default_summary: label: 'Items to display' views.style.rss: - type: mapping + type: views_style label: 'RSS Feed' mapping: description: @@ -129,7 +134,7 @@ views.style.rss: label: 'RSS description' views.style.unformatted_summary: - type: mapping + type: views.style.default_summary label: 'Unformatted' mapping: inline: diff --git a/core/modules/views/config/views.view.archive.yml b/core/modules/views/config/views.view.archive.yml index 56bbc67d45b5..b9bb1fc569d6 100644 --- a/core/modules/views/config/views.view.archive.yml +++ b/core/modules/views/config/views.view.archive.yml @@ -43,7 +43,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 @@ -93,8 +93,8 @@ display: id: status table: node_field_data field: status - value: '1' - group: '0' + value: true + group: 0 expose: operator: '0' plugin_id: boolean @@ -111,8 +111,8 @@ display: type: 'entity:node' options: view_mode: teaser - links: '1' - comments: '0' + links: true + comments: false header: { } footer: { } empty: { } diff --git a/core/modules/views/config/views.view.glossary.yml b/core/modules/views/config/views.view.glossary.yml index fcf50e96d9b8..7d5f28456850 100644 --- a/core/modules/views/config/views.view.glossary.yml +++ b/core/modules/views/config/views.view.glossary.yml @@ -18,7 +18,7 @@ display: distinct: false slave: false query_tags: { } - use_ajax: '1' + use_ajax: true access: type: none options: { } @@ -43,7 +43,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 @@ -58,7 +58,7 @@ display: id: title table: node_field_data field: title - link_to_node: '1' + link_to_node: true plugin_id: node relationship: none group_type: group @@ -110,7 +110,7 @@ display: table: users field: name label: Author - link_to_user: '1' + link_to_user: true relationship: uid plugin_id: user_name group_type: group @@ -155,9 +155,9 @@ display: hide_empty: false empty_zero: false hide_alter_empty: true - overwrite_anonymous: '0' + overwrite_anonymous: false anonymous_text: '' - format_username: '1' + format_username: true provider: user changed: id: changed @@ -290,7 +290,7 @@ display: inline: { } separator: '' hide_empty: false - default_field_elements: '1' + default_field_elements: true header: { } footer: { } empty: { } @@ -322,7 +322,7 @@ display: type: none options: offset: 0 - items_per_page: '0' + items_per_page: 0 defaults: arguments: false arguments: @@ -339,7 +339,7 @@ display: summary: format: unformatted_summary summary_options: - items_per_page: '25' + items_per_page: 25 inline: true separator: ' | ' specify_validation: true diff --git a/core/modules/views/config/views.view.taxonomy_term.yml b/core/modules/views/config/views.view.taxonomy_term.yml index 40ca1427934a..ed7c0ba3a938 100644 --- a/core/modules/views/config/views.view.taxonomy_term.yml +++ b/core/modules/views/config/views.view.taxonomy_term.yml @@ -42,7 +42,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 @@ -100,11 +100,11 @@ display: type: 'entity:taxonomy_term' fail: 'not found' validate_options: - access: '1' + access: true operation: view - multiple: '1' + multiple: 1 bundles: { } - depth: '0' + depth: 0 break_phrase: true plugin_id: taxonomy_index_tid_depth relationship: none @@ -115,8 +115,8 @@ display: default_argument_skip_url: false summary_options: base_path: '' - count: '1' - items_per_page: '25' + count: true + items_per_page: 25 override: false provider: taxonomy term_node_tid_depth_modifier: @@ -149,7 +149,7 @@ display: id: status_extra table: node_field_data field: status_extra - group: '0' + group: 0 expose: operator: '0' plugin_id: node_status @@ -166,8 +166,8 @@ display: type: 'entity:node' options: view_mode: teaser - links: '1' - comments: '0' + links: true + comments: false header: { } footer: { } empty: { } @@ -200,7 +200,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 @@ -212,7 +212,7 @@ display: next: 'next ›' first: '« first' last: 'last »' - quantity: '9' + quantity: 9 path: taxonomy/term/%/%/feed displays: page: page @@ -222,13 +222,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: 'Taxonomy term' module: taxonomy id: taxonomy_term diff --git a/core/modules/views/config/views.view.tracker.yml b/core/modules/views/config/views.view.tracker.yml index 3d0b23285826..2325cae86444 100644 --- a/core/modules/views/config/views.view.tracker.yml +++ b/core/modules/views/config/views.view.tracker.yml @@ -43,7 +43,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 @@ -114,8 +114,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: '' provider: node title: id: title @@ -166,7 +166,7 @@ display: hide_empty: false empty_zero: false hide_alter_empty: true - link_to_node: '1' + link_to_node: true provider: node name: id: name @@ -217,10 +217,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 provider: user comment_count: id: comment_count @@ -339,9 +339,9 @@ display: table: history field: timestamp label: '' - link_to_node: '0' - comments: '1' - plugin_id: node_history_user_timestamp + link_to_node: false + comments: true + plugin_id: history_user_timestamp relationship: none group_type: group admin_label: '' @@ -393,7 +393,7 @@ display: label: '' hide_empty: true suffix: ' new' - link_to_comment: '1' + link_to_comment: true plugin_id: node_new_comments relationship: none group_type: group @@ -437,11 +437,11 @@ display: empty: '' empty_zero: false hide_alter_empty: true - set_precision: '0' - precision: '0' + set_precision: false + precision: 0 decimal: . separator: ',' - format_plural: '0' + format_plural: false format_plural_singular: '1' format_plural_plural: '@count' prefix: '' @@ -492,8 +492,8 @@ display: id: status table: node_field_data field: status - value: '1' - group: '0' + value: true + group: 0 expose: operator: '0' plugin_id: boolean @@ -546,7 +546,7 @@ display: inline: { } separator: '' hide_empty: false - default_field_elements: '1' + default_field_elements: true header: { } footer: { } empty: { } diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_access_none.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_access_none.yml index 8cfa8c22dd3c..2ae3b71e73a2 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_access_none.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_access_none.yml @@ -20,7 +20,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_access_none tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_aggregate_count.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_aggregate_count.yml index 5f7c8974310f..f91f67dae167 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_aggregate_count.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_aggregate_count.yml @@ -54,7 +54,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_aggregate_count tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_ajax_view.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_ajax_view.yml index 0bc64181f395..ba7ce22590a9 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_ajax_view.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_ajax_view.yml @@ -51,14 +51,14 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: path: test_ajax_view display_plugin: page display_title: Page id: page_1 - position: '1' + position: 1 label: 'Test ajax view' id: test_ajax_view tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_alias.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_alias.yml index 4baf98955a4b..89e3955dfe86 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_alias.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_alias.yml @@ -83,7 +83,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: test_alias module: views id: test_alias diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_area_title.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_area_title.yml index 6da45409a4c6..219bc954b815 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_area_title.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_area_title.yml @@ -43,7 +43,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: defaults: @@ -60,7 +60,7 @@ display: display_plugin: page display_title: 'Page 1' id: page_1 - position: '1' + position: 1 label: '' id: test_area_title tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_area_view.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_area_view.yml index ffd51734eeca..c6fd478122b8 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_area_view.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_area_view.yml @@ -44,7 +44,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_area_view tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_argument_date.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_argument_date.yml index 726961e7767e..5e3ffad4a003 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_argument_date.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_argument_date.yml @@ -42,7 +42,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 embed_1: display_options: defaults: diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_argument_default_current_user.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_argument_default_current_user.yml index 96b1974f842e..cb14c2fc4d7b 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_argument_default_current_user.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_argument_default_current_user.yml @@ -50,7 +50,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_argument_default_current_user tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_argument_default_fixed.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_argument_default_fixed.yml index d71ac66a84f6..703d35569518 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_argument_default_fixed.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_argument_default_fixed.yml @@ -53,7 +53,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_argument_default_fixed tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_attachment_ui.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_attachment_ui.yml index 11ddd6c8a63e..ca105c189bef 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_attachment_ui.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_attachment_ui.yml @@ -29,24 +29,24 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 attachment_1: display_plugin: attachment display_title: Attachment id: attachment_1 - position: '1' + position: 1 page_1: display_plugin: page display_title: Page display_options: path: test_attachment_ui id: page_1 - position: '2' + position: 2 feed_1: display_plugin: feed id: feed_1 display_title: Feed - position: '3' + position: 3 display_options: pager: type: some diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_cache.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_cache.yml index 7d10bc4763e7..c5fb87e57e85 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_cache.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_cache.yml @@ -7,7 +7,7 @@ display: display_plugin: default id: default display_title: Master - position: '0' + position: 0 display_options: fields: id: diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_click_sort.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_click_sort.yml index 2dfc632ca330..32d25cfdfc62 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_click_sort.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_click_sort.yml @@ -44,14 +44,14 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: path: test_click_sort display_plugin: page display_title: Page id: page_1 - position: '0' + position: 0 label: { } id: test_click_sort tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_destroy.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_destroy.yml index 060b7e5921f7..dfe9d4cfc677 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_destroy.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_destroy.yml @@ -13,7 +13,7 @@ display: display_plugin: attachment display_title: Attachment id: attachment_1 - position: '0' + position: 0 attachment_2: display_options: displays: @@ -24,7 +24,7 @@ display: display_plugin: attachment display_title: Attachment id: attachment_2 - position: '0' + position: 0 default: display_options: access: @@ -186,14 +186,14 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: path: test_destroy display_plugin: page display_title: Page id: page_1 - position: '0' + position: 0 label: '' id: test_destroy tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display.yml index a223987832c7..8ef177487796 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display.yml @@ -31,7 +31,7 @@ display: display_plugin: block display_title: Block id: block_1 - position: '2' + position: 2 default: display_options: access: @@ -80,14 +80,14 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: path: test-display display_plugin: page display_title: Page id: page_1 - position: '1' + position: 1 label: '' id: test_display tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_attachment.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_attachment.yml index 7026ac1a2320..82f3ff18d2cb 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_attachment.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_attachment.yml @@ -8,7 +8,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm @@ -50,14 +50,14 @@ display: display_plugin: page id: page_1 display_title: Page - position: '1' + position: 1 display_options: path: test-display-attachment attachment_1: display_plugin: attachment id: attachment_1 display_title: Attachment - position: '2' + position: 2 display_options: displays: page_1: page_1 diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_defaults.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_defaults.yml index 11b33fa0253e..64af2b03a966 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_defaults.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_defaults.yml @@ -8,7 +8,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: none diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_empty.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_empty.yml index eda6f8414fa3..ea6659efcee7 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_empty.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_empty.yml @@ -37,7 +37,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' langcode: en id: test_display_empty diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_invalid.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_invalid.yml index db6ed337d04e..fa7f52470779 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_invalid.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_invalid.yml @@ -17,19 +17,19 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: path: test_display_invalid display_plugin: page display_title: Page id: page_1 - position: '0' + position: 0 block_1: display_plugin: block id: block_1 display_title: Block - position: '1' + position: 1 label: '' id: test_display_invalid tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_more.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_more.yml index 82d616d600b5..2ad1e3199eeb 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_more.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_display_more.yml @@ -39,12 +39,12 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_plugin: page id: page_1 display_title: Page - position: '1' + position: 1 display_options: path: test_display_more label: 'Test display more' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_dropbutton.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_dropbutton.yml index 98d0d72de514..e83d67b3389d 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_dropbutton.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_dropbutton.yml @@ -8,7 +8,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm @@ -226,7 +226,7 @@ display: display_plugin: page id: page_1 display_title: Page - position: '' + position: null display_options: path: test-dropbutton field: diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_entity_area.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_entity_area.yml index 5d06868409c8..d61b74673a6b 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_entity_area.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_entity_area.yml @@ -51,7 +51,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_entity_area tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_entity_row.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_entity_row.yml index dc66a1f84f4f..34e2ec8e8154 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_entity_row.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_entity_row.yml @@ -23,7 +23,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_entity_row tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_entity_type_filter.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_entity_type_filter.yml index 9babc1c642d3..a9873c2aadff 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_entity_type_filter.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_entity_type_filter.yml @@ -7,7 +7,7 @@ display: display_plugin: default id: default display_title: Master - position: '0' + position: 0 display_options: fields: nid: diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_example_area.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_example_area.yml index 2b94cc13e21a..8005d4f1d5d1 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_example_area.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_example_area.yml @@ -33,7 +33,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: { } id: test_example_area tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_executable_displays.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_executable_displays.yml index 9694314b1b7b..71d5dc52bdf1 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_executable_displays.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_executable_displays.yml @@ -7,17 +7,17 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_plugin: page display_title: Page id: page_1 - position: '1' + position: 1 page_2: display_plugin: page display_title: 'Page 2' id: page_2 - position: '2' + position: 2 display_options: defaults: style: '0' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_exposed_admin_ui.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_exposed_admin_ui.yml index 1c993fbaf3bc..c7779af005b2 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_exposed_admin_ui.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_exposed_admin_ui.yml @@ -84,14 +84,14 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: path: test_exposed_admin_ui display_plugin: page display_title: Page id: page_1 - position: '0' + position: 0 label: '' id: test_exposed_admin_ui tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_exposed_block.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_exposed_block.yml index 0528a1d14cb0..ebda91dd9c92 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_exposed_block.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_exposed_block.yml @@ -42,7 +42,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: path: test_exposed_block @@ -50,7 +50,7 @@ display: display_plugin: page display_title: Page id: page_1 - position: '0' + position: 0 label: '' id: test_exposed_block tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_exposed_form.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_exposed_form.yml index 066da9402f55..cde0aeec6216 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_exposed_form.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_exposed_form.yml @@ -20,7 +20,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_exposed_form tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_exposed_form_buttons.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_exposed_form_buttons.yml index c55bf664cac0..c8fefdba6225 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_exposed_form_buttons.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_exposed_form_buttons.yml @@ -42,14 +42,14 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: path: test_exposed_form_buttons display_plugin: page display_title: Page id: page_1 - position: '0' + position: 0 label: '' id: test_exposed_form_buttons tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_classes.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_classes.yml index 4f0a5e2ae241..b439bd97caed 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_classes.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_classes.yml @@ -21,14 +21,14 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: path: test_field_classes display_plugin: page display_title: Page id: page_1 - position: '0' + position: 0 label: { } id: test_field_classes tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_get_entity.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_get_entity.yml index cac8aad06b96..3b634c6b52c6 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_get_entity.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_get_entity.yml @@ -67,7 +67,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: test_field_get_entity id: test_field_get_entity tag: default diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_output.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_output.yml index 74f7e59dfea1..ba5b139b5676 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_output.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_output.yml @@ -21,7 +21,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_field_output tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_tokens.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_tokens.yml index 5bb6c56056ae..117559ea3499 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_tokens.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_field_tokens.yml @@ -47,6 +47,6 @@ display: display_plugin: default display_title: Defaults id: default - position: '0' + position: 0 id: test_field_tokens tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter.yml index cfd3c6f811dc..f20291693153 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter.yml @@ -38,6 +38,6 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: 'Test filters' id: test_filter diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter_date_between.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter_date_between.yml index 384dd7e36118..5eefe8f0f321 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter_date_between.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter_date_between.yml @@ -38,7 +38,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_filter_date_between tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter_group_override.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter_group_override.yml index 99356cdd58bc..ca95b6b79c54 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter_group_override.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter_group_override.yml @@ -44,14 +44,14 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: path: test display_plugin: page display_title: Page id: page_1 - position: '0' + position: 0 label: test_filter_group_override id: test_filter_group_override tag: default diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter_groups.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter_groups.yml index 0975e42c8363..b0ef217d2bcc 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter_groups.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter_groups.yml @@ -77,7 +77,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page: display_options: defaults: @@ -120,7 +120,7 @@ display: display_plugin: page display_title: Page id: page - position: '0' + position: 0 label: test_filter_groups id: test_filter_groups tag: default diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter_in_operator_ui.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter_in_operator_ui.yml index f10f25cfc9d0..8473c13b1fd7 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter_in_operator_ui.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_filter_in_operator_ui.yml @@ -34,7 +34,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_filter_in_operator_ui tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_get_attach_displays.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_get_attach_displays.yml index 94c777c27808..79c4473205fe 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_get_attach_displays.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_get_attach_displays.yml @@ -9,7 +9,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm @@ -75,14 +75,14 @@ display: display_plugin: page id: page_1 display_title: Page - position: '' + position: null display_options: path: test-get-attach-displays feed_1: display_plugin: feed id: feed_1 display_title: Feed - position: '' + position: null display_options: pager: type: some @@ -98,7 +98,7 @@ display: display_plugin: feed id: feed_2 display_title: 'Feed 2' - position: '' + position: null display_options: displays: default: default diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_glossary.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_glossary.yml index 41875e8f332c..ec0ea2fdd371 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_glossary.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_glossary.yml @@ -45,7 +45,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: test_glossary id: test_glossary tag: default diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_grid.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_grid.yml index a8d9579f5827..70cb460af235 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_grid.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_grid.yml @@ -58,14 +58,14 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: path: test-grid display_plugin: page display_title: 'Page display' id: page_1 - position: '1' + position: 1 label: '' id: test_grid tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_group_by_count.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_group_by_count.yml index 4bf96e3aa02c..7b7162490c75 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_group_by_count.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_group_by_count.yml @@ -55,7 +55,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_group_by_count tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_group_by_in_filters.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_group_by_in_filters.yml index 46cdd5749922..198d94e68dab 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_group_by_in_filters.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_group_by_in_filters.yml @@ -49,7 +49,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_group_by_in_filters tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_handler_relationships.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_handler_relationships.yml index 4d9f7d8a6922..9f6249556e95 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_handler_relationships.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_handler_relationships.yml @@ -29,7 +29,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_handler_relationships tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_handler_test_access.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_handler_test_access.yml index 2a1a6493d5f0..ce49309b690d 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_handler_test_access.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_handler_test_access.yml @@ -58,5 +58,5 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 id: test_handler_test_access diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_history.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_history.yml index f2791fc4a9b9..171b42ea6f6b 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_history.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_history.yml @@ -8,7 +8,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm @@ -119,7 +119,7 @@ display: display_plugin: page id: page_1 display_title: 'Page without new filter' - position: '' + position: null display_options: display_description: '' path: test-without-history @@ -127,7 +127,7 @@ display: display_plugin: page id: page_2 display_title: 'Page with new filter' - position: '' + position: null display_options: display_description: '' path: test-with-history diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_http_status_code.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_http_status_code.yml index 56ccb7cfa431..76760932a9d6 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_http_status_code.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_http_status_code.yml @@ -8,7 +8,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm @@ -72,7 +72,7 @@ display: display_plugin: page id: page_1 display_title: Page - position: '' + position: null display_options: path: test-http-status-code label: test_http_status_code diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_mini_pager.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_mini_pager.yml index 484055c028c7..d1f5552edda4 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_mini_pager.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_mini_pager.yml @@ -9,7 +9,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm @@ -82,14 +82,14 @@ display: display_plugin: page id: page_1 display_title: Page - position: '' + position: null display_options: path: test_mini_pager page_2: display_plugin: page id: page_2 display_title: Page - position: '' + position: null display_options: path: test_mini_pager_one defaults: @@ -102,7 +102,7 @@ display: display_plugin: page id: page_3 display_title: Page - position: '' + position: null display_options: path: test_mini_pager_all defaults: diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_page_display.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_page_display.yml index d090123bbb3b..d83c987f7658 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_page_display.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_page_display.yml @@ -21,28 +21,28 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: path: test_page_display_403 display_plugin: page display_title: Page id: page_1 - position: '1' + position: 1 page_2: display_options: path: test_page_display_404 display_plugin: page display_title: Page id: page_2 - position: '2' + position: 2 page_3: display_options: path: test_page_display_200 display_plugin: page display_title: Page id: page_3 - position: '3' + position: 3 label: '' id: test_page_display tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_page_display_arguments.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_page_display_arguments.yml index 33c717c1bae9..1b001d773bf5 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_page_display_arguments.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_page_display_arguments.yml @@ -21,14 +21,14 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: path: test_route_without_arguments display_plugin: page display_title: Page id: page_1 - position: '0' + position: 0 page_2: display_options: defaults: @@ -45,7 +45,7 @@ display: display_plugin: page display_title: Page id: page_2 - position: '0' + position: 0 page_3: display_options: defaults: @@ -62,7 +62,7 @@ display: display_plugin: page display_title: Page id: page_3 - position: '0' + position: 0 page_4: display_options: defaults: @@ -86,7 +86,7 @@ display: display_plugin: page display_title: Page id: page_4 - position: '0' + position: 0 page_5: display_options: defaults: @@ -103,7 +103,7 @@ display: display_plugin: page display_title: Page id: page_5 - position: '0' + position: 0 label: '' id: test_page_display_arguments tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_page_display_menu.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_page_display_menu.yml index 687e1c2a8153..1d1911bb70bc 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_page_display_menu.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_page_display_menu.yml @@ -21,7 +21,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: path: test_page_display_menu/default @@ -44,7 +44,7 @@ display: display_plugin: page display_title: Page id: page_1 - position: '0' + position: 0 page_2: display_options: path: test_page_display_menu/local @@ -61,7 +61,7 @@ display: display_plugin: page display_title: Page id: page_2 - position: '0' + position: 0 label: 'Test page menu' id: test_page_display_menu tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_page_display_route.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_page_display_route.yml index a827e8748f16..281b2fc9f855 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_page_display_route.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_page_display_route.yml @@ -21,14 +21,14 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: path: test_route_without_arguments display_plugin: page display_title: Page id: page_1 - position: '0' + position: 0 page_2: display_options: defaults: @@ -45,7 +45,7 @@ display: display_plugin: page display_title: Page id: page_2 - position: '0' + position: 0 page_3: display_options: defaults: @@ -62,7 +62,7 @@ display: display_plugin: page display_title: Page id: page_3 - position: '0' + position: 0 page_4: display_options: defaults: @@ -86,7 +86,7 @@ display: display_plugin: page display_title: Page id: page_4 - position: '0' + position: 0 page_5: display_options: defaults: @@ -110,7 +110,7 @@ display: display_plugin: page display_title: Page id: page_5 - position: '0' + position: 0 page_6: display_options: defaults: @@ -134,7 +134,7 @@ display: display_plugin: page display_title: Page id: page_6 - position: '0' + position: 0 page_7: display_options: defaults: @@ -145,7 +145,7 @@ display: display_plugin: page display_title: Page id: page_7 - position: '0' + position: 0 label: '' id: test_page_display_route tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_page_view.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_page_view.yml index 39608d691735..3ab4cb9fb80e 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_page_view.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_page_view.yml @@ -21,7 +21,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_plugin: page display_title: 'Test page view' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_pager_full.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_pager_full.yml index b93e53d6784d..803ee26bdbcd 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_pager_full.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_pager_full.yml @@ -24,7 +24,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_pager_full tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_pager_none.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_pager_none.yml index 999f40db56c5..0a3c918037e0 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_pager_none.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_pager_none.yml @@ -20,7 +20,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_pager_none tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_pager_some.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_pager_some.yml index 2ec343988c91..952b90e7b61a 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_pager_some.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_pager_some.yml @@ -23,7 +23,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_pager_some tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_preview.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_preview.yml index 920ed7d6d133..bac7301ae361 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_preview.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_preview.yml @@ -8,7 +8,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_redirect_view.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_redirect_view.yml index 12e38fa2ab5a..0f8d35e9b971 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_redirect_view.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_redirect_view.yml @@ -9,7 +9,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null display_options: access: type: perm @@ -75,7 +75,7 @@ display: display_plugin: page id: page_1 display_title: Page - position: '' + position: null display_options: path: test-redirect-view base_field: nid diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_simple_argument.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_simple_argument.yml index 5e9220d88c29..ff1f938d70e4 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_simple_argument.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_simple_argument.yml @@ -83,7 +83,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_simple_argument tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_store_pager_settings.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_store_pager_settings.yml index a0ea018ac0fa..340827b3f0bc 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_store_pager_settings.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_store_pager_settings.yml @@ -20,7 +20,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_store_pager_settings tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_style_mapping.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_style_mapping.yml index 9cac36f2abbf..2f4cb9cca12b 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_style_mapping.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_style_mapping.yml @@ -59,7 +59,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_style_mapping tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_table.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_table.yml index 89572622bb75..159b4f6d2e59 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_table.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_table.yml @@ -105,14 +105,14 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: path: test-table display_plugin: page display_title: 'Page display' id: page_1 - position: '1' + position: 1 label: '' id: test_table tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_tag_cache.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_tag_cache.yml index f81b53e3f8a0..c1df594849f1 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_tag_cache.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_tag_cache.yml @@ -97,7 +97,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_tag_cache tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_tokens.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_tokens.yml index 2867aa92ba20..a9c55df667da 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_tokens.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_tokens.yml @@ -43,12 +43,12 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: id: page_1 display_title: Page display_plugin: page - position: '1' + position: 1 display_options: defaults: title: '0' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view.yml index 1f47740b67a8..df3bbe21b172 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view.yml @@ -49,7 +49,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: 'Test view' id: test_view tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_argument_validate_numeric.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_argument_validate_numeric.yml index 2cb8d4face1f..61379cdfd7f5 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_argument_validate_numeric.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_argument_validate_numeric.yml @@ -32,7 +32,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_view_argument_validate_numeric tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_argument_validate_php.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_argument_validate_php.yml index de1e187c425e..871206d65112 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_argument_validate_php.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_argument_validate_php.yml @@ -32,7 +32,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_view_argument_validate_php tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_broken.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_broken.yml index e5870e5024f7..b51f6b308288 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_broken.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_broken.yml @@ -83,7 +83,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: 'Test view' id: test_view_broken tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_delete.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_delete.yml index 70c6027cef81..b27a2e33108c 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_delete.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_delete.yml @@ -22,7 +22,7 @@ display: display_plugin: default display_title: Defaults id: default - position: '0' + position: 0 label: test_view_delete id: test_view_delete tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_display_template.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_display_template.yml index f005f0075297..cac043832db2 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_display_template.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_display_template.yml @@ -8,7 +8,7 @@ display: display_plugin: default id: default display_title: Master - position: '1' + position: 1 display_options: access: { } cache: { } diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_empty.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_empty.yml index 9504a9fabdb2..75cbfe659b95 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_empty.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_empty.yml @@ -26,7 +26,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_view_empty tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_handler_weight.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_handler_weight.yml index e7b0d0ab34f2..089e80bdea5a 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_handler_weight.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_handler_weight.yml @@ -70,7 +70,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_view_handler_weight tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_optional.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_optional.yml index 36bf93e4ae11..de319fe7d4fc 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_optional.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_optional.yml @@ -91,7 +91,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: 'Test view' id: test_view_optional tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_pager_full_zero_items_per_page.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_pager_full_zero_items_per_page.yml index f563ed846981..baa376a0cd8e 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_pager_full_zero_items_per_page.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_pager_full_zero_items_per_page.yml @@ -42,7 +42,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_view_pager_full_zero_items_per_page tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_render.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_render.yml index 320d835f6982..263153340359 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_render.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_render.yml @@ -51,7 +51,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_view_render tag: '' diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_status.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_status.yml index 88ede157615c..e2e0206d8985 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_status.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_status.yml @@ -9,7 +9,7 @@ display: display_plugin: default id: default display_title: Master - position: '' + position: null base_field: id status: '0' module: views diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_storage.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_storage.yml index 7a431c8709d3..7cf6c19c8760 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_storage.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_storage.yml @@ -31,12 +31,12 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: id: page_1 display_title: Page display_plugin: page - position: '1' + position: 1 display_options: query: type: views_query @@ -46,7 +46,7 @@ display: id: block_1 display_title: Block display_plugin: block - position: '2' + position: 2 display_options: query: type: views_query diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_views_groupby_save.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_views_groupby_save.yml index e17bdf4cf08c..9104e91dc599 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_views_groupby_save.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_views_groupby_save.yml @@ -27,7 +27,7 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 label: '' id: test_views_groupby_save tag: '' diff --git a/core/modules/views/tests/modules/views_test_data/test_views/views.view.test_access_static.yml b/core/modules/views/tests/modules/views_test_data/test_views/views.view.test_access_static.yml index dc21c9cc5948..490186b69da9 100644 --- a/core/modules/views/tests/modules/views_test_data/test_views/views.view.test_access_static.yml +++ b/core/modules/views/tests/modules/views_test_data/test_views/views.view.test_access_static.yml @@ -20,14 +20,14 @@ display: display_plugin: default display_title: Master id: default - position: '0' + position: 0 page_1: display_options: path: test_access_static display_plugin: page display_title: Page id: page_1 - position: '0' + position: 0 label: '' id: test_access_static tag: '' diff --git a/core/profiles/minimal/config/block.block.stark_admin.yml b/core/profiles/minimal/config/block.block.stark_admin.yml index 1c11ab590582..aeded26d9168 100644 --- a/core/profiles/minimal/config/block.block.stark_admin.yml +++ b/core/profiles/minimal/config/block.block.stark_admin.yml @@ -1,7 +1,7 @@ id: stark_admin theme: stark -weight: '1' -status: '1' +weight: 1 +status: true langcode: en region: sidebar_first plugin: 'system_menu_block:admin' @@ -9,10 +9,10 @@ settings: label: Administration module: system label_display: visible - cache: '-1' + cache: -1 visibility: path: - visibility: '0' + visibility: 0 pages: '' role: roles: { } diff --git a/core/profiles/minimal/config/block.block.stark_login.yml b/core/profiles/minimal/config/block.block.stark_login.yml index a727ff5ef009..7ca1d456167b 100644 --- a/core/profiles/minimal/config/block.block.stark_login.yml +++ b/core/profiles/minimal/config/block.block.stark_login.yml @@ -1,7 +1,7 @@ id: stark_login theme: stark -weight: '0' -status: '1' +weight: 0 +status: true langcode: en region: sidebar_first plugin: user_login_block @@ -9,10 +9,10 @@ settings: label: 'User login' module: user label_display: visible - cache: '-1' + cache: -1 visibility: path: - visibility: '0' + visibility: 0 pages: '' role: roles: { } diff --git a/core/profiles/minimal/config/block.block.stark_tools.yml b/core/profiles/minimal/config/block.block.stark_tools.yml index 6073ede0aa2d..0d1fb7b42d8c 100644 --- a/core/profiles/minimal/config/block.block.stark_tools.yml +++ b/core/profiles/minimal/config/block.block.stark_tools.yml @@ -1,7 +1,7 @@ id: stark_tools theme: stark -weight: '0' -status: '1' +weight: 0 +status: true langcode: en region: sidebar_first plugin: 'system_menu_block:tools' @@ -9,10 +9,10 @@ settings: label: Tools module: system label_display: visible - cache: '-1' + cache: -1 visibility: path: - visibility: '0' + visibility: 0 pages: '' role: roles: { } diff --git a/core/profiles/standard/config/block.block.bartik_breadcrumbs.yml b/core/profiles/standard/config/block.block.bartik_breadcrumbs.yml index c915c4690e5e..21d410d53941 100644 --- a/core/profiles/standard/config/block.block.bartik_breadcrumbs.yml +++ b/core/profiles/standard/config/block.block.bartik_breadcrumbs.yml @@ -1,8 +1,8 @@ id: bartik_breadcrumbs theme: bartik uuid: a29e843f-d19c-4528-ab02-2fc335e12b1e -weight: '-5' -status: '0' +weight: -5 +status: false langcode: en region: '-1' plugin: system_breadcrumb_block @@ -10,10 +10,10 @@ settings: label: Breadcrumbs module: system label_display: '0' - cache: '-1' + cache: -1 visibility: path: - visibility: '0' + visibility: 0 pages: '' role: roles: { } diff --git a/core/profiles/standard/config/block.block.bartik_content.yml b/core/profiles/standard/config/block.block.bartik_content.yml index 5b7187b0733b..009896643946 100644 --- a/core/profiles/standard/config/block.block.bartik_content.yml +++ b/core/profiles/standard/config/block.block.bartik_content.yml @@ -1,8 +1,8 @@ id: bartik_content theme: bartik uuid: 2cab5a0c-de08-4b5c-9700-f0243a6fb000 -weight: '0' -status: '1' +weight: 0 +status: true langcode: en region: content plugin: system_main_block @@ -10,10 +10,10 @@ settings: label: 'Main page content' module: system label_display: '0' - cache: '-1' + cache: -1 visibility: path: - visibility: '0' + visibility: 0 pages: '' role: roles: { } diff --git a/core/profiles/standard/config/block.block.bartik_footer.yml b/core/profiles/standard/config/block.block.bartik_footer.yml index 2ad2766bb54c..7578cb6d01e6 100644 --- a/core/profiles/standard/config/block.block.bartik_footer.yml +++ b/core/profiles/standard/config/block.block.bartik_footer.yml @@ -1,8 +1,8 @@ id: bartik_footer theme: bartik uuid: a6c75fc2-5ca1-403e-ab37-557c7244e8c0 -weight: '0' -status: '1' +weight: 0 +status: true langcode: en region: footer plugin: 'system_menu_block:footer' @@ -10,10 +10,10 @@ settings: label: 'Footer menu' module: system label_display: visible - cache: '-1' + cache: -1 visibility: path: - visibility: '0' + visibility: 0 pages: '' role: roles: { } diff --git a/core/profiles/standard/config/block.block.bartik_help.yml b/core/profiles/standard/config/block.block.bartik_help.yml index c697560d6481..a79e8b99107a 100644 --- a/core/profiles/standard/config/block.block.bartik_help.yml +++ b/core/profiles/standard/config/block.block.bartik_help.yml @@ -1,8 +1,8 @@ id: bartik_help theme: bartik uuid: 6ea8e05a-6793-4ecf-8801-015dc6e1013e -weight: '0' -status: '1' +weight: 0 +status: true langcode: en region: help plugin: system_help_block @@ -10,10 +10,10 @@ settings: label: 'System Help' module: system label_display: '0' - cache: '-1' + cache: -1 visibility: path: - visibility: '0' + visibility: 0 pages: '' role: roles: { } diff --git a/core/profiles/standard/config/block.block.bartik_login.yml b/core/profiles/standard/config/block.block.bartik_login.yml index e94f5623e6ae..47aa1597ffc6 100644 --- a/core/profiles/standard/config/block.block.bartik_login.yml +++ b/core/profiles/standard/config/block.block.bartik_login.yml @@ -1,8 +1,8 @@ id: bartik_login theme: bartik uuid: 961f4152-3e91-4c9f-9114-20a5375675d0 -weight: '0' -status: '1' +weight: 0 +status: true langcode: en region: sidebar_first plugin: user_login_block @@ -10,10 +10,10 @@ settings: label: 'User login' module: user label_display: visible - cache: '-1' + cache: -1 visibility: path: - visibility: '0' + visibility: 0 pages: '' role: roles: { } diff --git a/core/profiles/standard/config/block.block.bartik_powered.yml b/core/profiles/standard/config/block.block.bartik_powered.yml index 265f2716c33a..24754e7c3db3 100644 --- a/core/profiles/standard/config/block.block.bartik_powered.yml +++ b/core/profiles/standard/config/block.block.bartik_powered.yml @@ -1,8 +1,8 @@ id: bartik_powered theme: bartik uuid: 37cff101-27dc-478d-9d00-b58b9d884039 -weight: '10' -status: '1' +weight: 10 +status: true langcode: en region: footer plugin: system_powered_by_block @@ -10,10 +10,10 @@ settings: label: 'Powered by Drupal' module: system label_display: '0' - cache: '-1' + cache: -1 visibility: path: - visibility: '0' + visibility: 0 pages: '' role: roles: { } diff --git a/core/profiles/standard/config/block.block.bartik_search.yml b/core/profiles/standard/config/block.block.bartik_search.yml index d37e197281a8..c1a6942b3b7a 100644 --- a/core/profiles/standard/config/block.block.bartik_search.yml +++ b/core/profiles/standard/config/block.block.bartik_search.yml @@ -1,8 +1,8 @@ id: bartik_search theme: bartik uuid: 51f70058-a370-4410-9000-a65488d00e6c -weight: '-1' -status: '1' +weight: -1 +status: true langcode: en region: sidebar_first plugin: search_form_block @@ -10,10 +10,10 @@ settings: label: Search module: search label_display: visible - cache: '-1' + cache: -1 visibility: path: - visibility: '0' + visibility: 0 pages: '' role: roles: { } diff --git a/core/profiles/standard/config/block.block.bartik_tools.yml b/core/profiles/standard/config/block.block.bartik_tools.yml index b94065195e96..5850d6117720 100644 --- a/core/profiles/standard/config/block.block.bartik_tools.yml +++ b/core/profiles/standard/config/block.block.bartik_tools.yml @@ -1,8 +1,8 @@ id: bartik_tools theme: bartik uuid: 0dca3209-c6fa-4043-a407-7afb952cfc5e -weight: '0' -status: '1' +weight: 0 +status: true langcode: en region: sidebar_first plugin: 'system_menu_block:tools' @@ -10,10 +10,10 @@ settings: label: Tools module: system label_display: visible - cache: '-1' + cache: -1 visibility: path: - visibility: '0' + visibility: 0 pages: '' role: roles: { } diff --git a/core/profiles/standard/config/block.block.seven_breadcrumbs.yml b/core/profiles/standard/config/block.block.seven_breadcrumbs.yml index d31403117bc6..092fa2633701 100644 --- a/core/profiles/standard/config/block.block.seven_breadcrumbs.yml +++ b/core/profiles/standard/config/block.block.seven_breadcrumbs.yml @@ -1,8 +1,8 @@ id: seven_breadcrumbs theme: seven uuid: f8d0d0fb-daf7-4c91-8a09-9cb643279f03 -weight: '-2' -status: '0' +weight: -2 +status: false langcode: en region: '-1' plugin: system_breadcrumb_block @@ -10,10 +10,10 @@ settings: label: Breadcrumbs module: system label_display: '0' - cache: '-1' + cache: -1 visibility: path: - visibility: '0' + visibility: 0 pages: '' role: roles: { } diff --git a/core/profiles/standard/config/block.block.seven_content.yml b/core/profiles/standard/config/block.block.seven_content.yml index 39f26ffcd2b6..e1591e55a4f9 100644 --- a/core/profiles/standard/config/block.block.seven_content.yml +++ b/core/profiles/standard/config/block.block.seven_content.yml @@ -1,8 +1,8 @@ id: seven_content theme: seven uuid: 3c9e3337-e0f4-42c3-8a00-f1d8be09b0ea -weight: '0' -status: '1' +weight: 0 +status: true langcode: en region: content plugin: system_main_block @@ -10,10 +10,10 @@ settings: label: 'Main page content' module: system label_display: '0' - cache: '-1' + cache: -1 visibility: path: - visibility: '0' + visibility: 0 pages: '' role: roles: { } diff --git a/core/profiles/standard/config/block.block.seven_help.yml b/core/profiles/standard/config/block.block.seven_help.yml index 8536232d6d0e..5e39acf1f295 100644 --- a/core/profiles/standard/config/block.block.seven_help.yml +++ b/core/profiles/standard/config/block.block.seven_help.yml @@ -1,8 +1,8 @@ id: seven_help theme: seven uuid: 367d09b7-9638-4faf-bf07-7fe31b2226a0 -weight: '0' -status: '1' +weight: 0 +status: true langcode: en region: help plugin: system_help_block @@ -10,10 +10,10 @@ settings: label: 'System Help' module: system label_display: '0' - cache: '-1' + cache: -1 visibility: path: - visibility: '0' + visibility: 0 pages: '' role: roles: { } diff --git a/core/profiles/standard/config/block.block.seven_login.yml b/core/profiles/standard/config/block.block.seven_login.yml index d3e62fa0cf24..f76a568d7006 100644 --- a/core/profiles/standard/config/block.block.seven_login.yml +++ b/core/profiles/standard/config/block.block.seven_login.yml @@ -1,8 +1,8 @@ id: seven_login theme: seven uuid: 10a9888b-2247-408d-9702-2c0cc9cacba2 -weight: '10' -status: '1' +weight: 10 +status: true langcode: en region: content plugin: user_login_block @@ -10,10 +10,10 @@ settings: label: 'User login' module: user label_display: visible - cache: '-1' + cache: -1 visibility: path: - visibility: '0' + visibility: 0 pages: '' role: roles: { } @@ -22,4 +22,3 @@ visibility: article: '0' page: '0' visibility__active_tab: edit-visibility-path - diff --git a/core/profiles/standard/config/editor.editor.full_html.yml b/core/profiles/standard/config/editor.editor.full_html.yml index 2e70cfd6de61..cd17f0329152 100644 --- a/core/profiles/standard/config/editor.editor.full_html.yml +++ b/core/profiles/standard/config/editor.editor.full_html.yml @@ -32,7 +32,7 @@ settings: - Table - HorizontalRule - - name: Block Formatting + name: 'Block Formatting' items: - Format - @@ -40,7 +40,6 @@ settings: items: - ShowBlocks - Source - plugins: stylescombo: styles: '' diff --git a/core/profiles/standard/config/entity.display.node.article.default.yml b/core/profiles/standard/config/entity.display.node.article.default.yml index 33d77f058069..8df7b8403f7a 100644 --- a/core/profiles/standard/config/entity.display.node.article.default.yml +++ b/core/profiles/standard/config/entity.display.node.article.default.yml @@ -3,16 +3,16 @@ uuid: 3ca9876e-7b93-48bd-8f00-b4ce293ad554 targetEntityType: node bundle: article mode: default -status: 1 +status: true content: body: label: hidden type: text_default - weight: '0' + weight: 0 settings: { } field_tags: type: taxonomy_term_reference_link - weight: '10' + weight: 10 label: above settings: { } field_image: @@ -21,4 +21,4 @@ content: settings: image_style: large image_link: '' - weight: '-1' + weight: -1 diff --git a/core/profiles/standard/config/entity.display.node.article.teaser.yml b/core/profiles/standard/config/entity.display.node.article.teaser.yml index a11caaed5563..84133dee4af3 100644 --- a/core/profiles/standard/config/entity.display.node.article.teaser.yml +++ b/core/profiles/standard/config/entity.display.node.article.teaser.yml @@ -3,17 +3,17 @@ uuid: 7156f406-c67c-4d1f-bd35-53dbf20ee7e4 targetEntityType: node bundle: article mode: teaser -status: 1 +status: true content: body: label: hidden type: text_summary_or_trimmed - weight: '0' + weight: 0 settings: - trim_length: '600' + trim_length: 600 field_tags: type: taxonomy_term_reference_link - weight: '10' + weight: 10 label: above settings: { } field_image: @@ -22,4 +22,4 @@ content: settings: image_style: medium image_link: content - weight: '-1' + weight: -1 diff --git a/core/profiles/standard/config/entity.form_display.node.article.default.yml b/core/profiles/standard/config/entity.form_display.node.article.default.yml index f3007acee75e..cefd0b46a84f 100644 --- a/core/profiles/standard/config/entity.form_display.node.article.default.yml +++ b/core/profiles/standard/config/entity.form_display.node.article.default.yml @@ -3,20 +3,20 @@ uuid: 1756324d-52bd-499c-8b06-6d6a87ea71bd targetEntityType: node bundle: article mode: default -status: 1 +status: true content: body: type: text_textarea_with_summary - weight: '0' + weight: 0 settings: - rows: '9' - summary_rows: '3' + rows: 9 + summary_rows: 3 placeholder: '' field_tags: type: taxonomy_autocomplete - weight: '-4' + weight: -4 settings: - size: '60' + size: 60 autocomplete_route_name: taxonomy.autocomplete placeholder: '' field_image: @@ -24,4 +24,4 @@ content: settings: progress_indicator: throbber preview_image_style: thumbnail - weight: '-1' + weight: -1 diff --git a/core/profiles/standard/config/field.field.node.field_image.yml b/core/profiles/standard/config/field.field.node.field_image.yml index 4c8ea1a710de..71d28d625862 100644 --- a/core/profiles/standard/config/field.field.node.field_image.yml +++ b/core/profiles/standard/config/field.field.node.field_image.yml @@ -25,11 +25,11 @@ settings: title: label: Title translatable: true -locked: '0' -cardinality: '1' -translatable: '0' +locked: false +cardinality: 1 +translatable: false indexes: target_id: - target_id -status: 1 +status: true langcode: und diff --git a/core/profiles/standard/config/field.field.node.field_tags.yml b/core/profiles/standard/config/field.field.node.field_tags.yml index 0875bfccc32f..08527c3326c8 100644 --- a/core/profiles/standard/config/field.field.node.field_tags.yml +++ b/core/profiles/standard/config/field.field.node.field_tags.yml @@ -9,11 +9,11 @@ settings: - vocabulary: tags parent: 0 -locked: '0' -cardinality: '-1' -translatable: '0' +locked: false +cardinality: -1 +translatable: false indexes: target_id: - target_id -status: 1 +status: true langcode: und diff --git a/core/profiles/standard/config/field.field.user.user_picture.yml b/core/profiles/standard/config/field.field.user.user_picture.yml index 27c3069f5904..41aaf5e421f0 100644 --- a/core/profiles/standard/config/field.field.user.user_picture.yml +++ b/core/profiles/standard/config/field.field.user.user_picture.yml @@ -7,7 +7,12 @@ entity_type: user type: image settings: uri_scheme: public - default_image: false + default_image: + fid: null + alt: '' + title: '' + width: null + height: null column_groups: file: label: File @@ -22,7 +27,6 @@ settings: label: Title translatable: true module: image -active: true locked: false cardinality: 1 translatable: false diff --git a/core/profiles/standard/config/field.instance.node.article.field_image.yml b/core/profiles/standard/config/field.instance.node.article.field_image.yml index 791d047d4948..12c5911da884 100644 --- a/core/profiles/standard/config/field.instance.node.article.field_image.yml +++ b/core/profiles/standard/config/field.instance.node.article.field_image.yml @@ -15,14 +15,15 @@ settings: max_resolution: '' min_resolution: '' alt_field: true - title_field: '' - alt_field_required: 0 - title_field_required: 0 + title_field: false + alt_field_required: false + title_field_required: false default_image: fid: null alt: '' title: '' width: null height: null -status: 1 +status: true langcode: und +field_type: image diff --git a/core/profiles/standard/config/field.instance.node.article.field_tags.yml b/core/profiles/standard/config/field.instance.node.article.field_tags.yml index d0c7fbedd278..55b95e929891 100644 --- a/core/profiles/standard/config/field.instance.node.article.field_tags.yml +++ b/core/profiles/standard/config/field.instance.node.article.field_tags.yml @@ -9,5 +9,5 @@ required: false default_value: { } default_value_function: '' settings: { } -status: 1 +status: true langcode: und diff --git a/core/profiles/standard/config/field.instance.user.user.user_picture.yml b/core/profiles/standard/config/field.instance.user.user.user_picture.yml index 20f5a636a68b..ef297e8d642d 100644 --- a/core/profiles/standard/config/field.instance.user.user.user_picture.yml +++ b/core/profiles/standard/config/field.instance.user.user.user_picture.yml @@ -14,8 +14,8 @@ settings: file_extensions: 'png gif jpg jpeg' file_directory: pictures max_filesize: '30 KB' - alt_field: 0 - title_field: 0 + alt_field: false + title_field: false max_resolution: 85x85 min_resolution: '' default_image: @@ -24,6 +24,6 @@ settings: title: '' width: null height: null - alt_field_required: '0' - title_field_required: '0' + alt_field_required: false + title_field_required: false field_type: image diff --git a/core/profiles/standard/config/filter.format.basic_html.yml b/core/profiles/standard/config/filter.format.basic_html.yml index f5acb95bd9b7..ccb72a13cc9c 100644 --- a/core/profiles/standard/config/filter.format.basic_html.yml +++ b/core/profiles/standard/config/filter.format.basic_html.yml @@ -19,7 +19,7 @@ filters: filter_caption: id: filter_caption provider: filter - status: 1 + status: true weight: 8 settings: { } filter_html_image_secure: diff --git a/core/profiles/standard/config/node.type.article.yml b/core/profiles/standard/config/node.type.article.yml index a3e10b2ddbf2..ae7ec97fd6d8 100644 --- a/core/profiles/standard/config/node.type.article.yml +++ b/core/profiles/standard/config/node.type.article.yml @@ -3,16 +3,16 @@ uuid: 38fcdfbf-92a0-43d3-af30-8395cba668d4 name: Article description: 'Use <em>articles</em> for time-sensitive content like news, press releases or blog posts.' help: '' -has_title: '1' +has_title: true title_label: Title settings: node: - preview: '1' + preview: 1 options: status: true promote: true sticky: false revision: false submitted: true -status: '1' +status: true langcode: en diff --git a/core/profiles/standard/config/node.type.page.yml b/core/profiles/standard/config/node.type.page.yml index d41ae949e13a..8499d33fe344 100644 --- a/core/profiles/standard/config/node.type.page.yml +++ b/core/profiles/standard/config/node.type.page.yml @@ -3,16 +3,16 @@ uuid: f77b56af-2b34-4a2f-b7e9-2dcadfdc80d0 name: 'Basic page' description: 'Use <em>basic pages</em> for your static content, such as an ''About us'' page.' help: '' -has_title: '1' +has_title: true title_label: Title settings: node: - preview: '1' + preview: 1 options: status: true promote: false sticky: false revision: false submitted: false -status: '1' +status: true langcode: en diff --git a/core/profiles/standard/config/system.cron.yml b/core/profiles/standard/config/system.cron.yml index aa41f1b5fba3..9289f283a5dd 100644 --- a/core/profiles/standard/config/system.cron.yml +++ b/core/profiles/standard/config/system.cron.yml @@ -1,4 +1,4 @@ threshold: - autorun: '10800' - requirements_warning: '172800' - requirements_error: '1209600' + autorun: 10800 + requirements_warning: 172800 + requirements_error: 1209600 diff --git a/core/profiles/standard/config/taxonomy.vocabulary.tags.yml b/core/profiles/standard/config/taxonomy.vocabulary.tags.yml index ec0d5ef8b774..dd0d326fc1fb 100644 --- a/core/profiles/standard/config/taxonomy.vocabulary.tags.yml +++ b/core/profiles/standard/config/taxonomy.vocabulary.tags.yml @@ -2,7 +2,7 @@ vid: tags uuid: f0c0ffc8-0936-46db-b106-6bf5c9f8dfa3 name: Tags description: 'Use tags to group articles on similar topics into categories.' -hierarchy: '0' -weight: '0' -status: '1' +hierarchy: 0 +weight: 0 +status: true langcode: en diff --git a/core/themes/bartik/config/bartik.settings.yml b/core/themes/bartik/config/bartik.settings.yml index 67537ae14209..3bb124eb8571 100644 --- a/core/themes/bartik/config/bartik.settings.yml +++ b/core/themes/bartik/config/bartik.settings.yml @@ -1 +1 @@ -shortcut_module_link: '0' +shortcut_module_link: false diff --git a/core/themes/bartik/config/schema/bartik.schema.yml b/core/themes/bartik/config/schema/bartik.schema.yml new file mode 100644 index 000000000000..f0e0316aa5a1 --- /dev/null +++ b/core/themes/bartik/config/schema/bartik.schema.yml @@ -0,0 +1,5 @@ +# Schema for the configuration files of the Seven theme. + +bartik.settings: + type: theme_settings_default + label: 'Bartik settings' diff --git a/core/themes/seven/config/schema/seven.schema.yml b/core/themes/seven/config/schema/seven.schema.yml new file mode 100644 index 000000000000..13f1384063e7 --- /dev/null +++ b/core/themes/seven/config/schema/seven.schema.yml @@ -0,0 +1,9 @@ +# Schema for the configuration files of the Seven theme. + +seven.settings: + type: theme_settings_default + label: 'Seven settings' + +seven.breakpoints: + type: theme_breakpoints_default + label: 'Seven breakpoints' diff --git a/core/themes/seven/config/seven.settings.yml b/core/themes/seven/config/seven.settings.yml index 7955d25ca331..f84652cc2e5e 100644 --- a/core/themes/seven/config/seven.settings.yml +++ b/core/themes/seven/config/seven.settings.yml @@ -1 +1 @@ -shortcut_module_link: '1' +shortcut_module_link: true diff --git a/core/themes/stark/config/schema/stark.schema.yml b/core/themes/stark/config/schema/stark.schema.yml new file mode 100644 index 000000000000..6e0293eacfcf --- /dev/null +++ b/core/themes/stark/config/schema/stark.schema.yml @@ -0,0 +1,9 @@ +# Schema for the configuration files of the Stark theme. + +stark.settings: + type: theme_settings_default + label: 'Stark settings' + +stark.breakpoints: + type: theme_breakpoints_default + label: 'Stark breakpoints' diff --git a/core/themes/stark/config/stark.settings.yml b/core/themes/stark/config/stark.settings.yml index 67537ae14209..3bb124eb8571 100644 --- a/core/themes/stark/config/stark.settings.yml +++ b/core/themes/stark/config/stark.settings.yml @@ -1 +1 @@ -shortcut_module_link: '0' +shortcut_module_link: false -- GitLab