diff --git a/core/config/schema/core.data_types.schema.yml b/core/config/schema/core.data_types.schema.yml index 1154ba3..973a0f0 100644 --- a/core/config/schema/core.data_types.schema.yml +++ b/core/config/schema/core.data_types.schema.yml @@ -220,6 +220,11 @@ route: config_dependencies_base: type: mapping mapping: + entity: + type: sequence + label: 'Entity dependencies' + sequence: + - type: string config: type: sequence label: 'Configuration entity dependencies' diff --git a/core/modules/config/tests/config_schema_test/config/install/block.block.views_block__content_recent_block_1_2.yml b/core/modules/config/tests/config_schema_test/config/install/block.block.views_block__content_recent_block_1_2.yml new file mode 100644 index 0000000..f68f919 --- /dev/null +++ b/core/modules/config/tests/config_schema_test/config/install/block.block.views_block__content_recent_block_1_2.yml @@ -0,0 +1,26 @@ +langcode: en +status: true +dependencies: + entity: + - views.view.content_recent + module: + - views + theme: + - bartik +id: views_block__content_recent_block_1_2 +theme: bartik +region: content +weight: -6 +provider: null +plugin: 'views_block:content_recent-block_1' +settings: + visibility: { } + id: 'views_block:content_recent-block_1' + label: 'Recent block content ' + provider: views + label_display: visible + cache: + max_age: 0 + contexts: { } + views_label: 'Recent block content ' + items_per_page: none diff --git a/core/modules/views/config/schema/views.schema.yml b/core/modules/views/config/schema/views.schema.yml index 66abe11..61a6ea5 100644 --- a/core/modules/views/config/schema/views.schema.yml +++ b/core/modules/views/config/schema/views.schema.yml @@ -114,3 +114,14 @@ views.view.*: label: 'Position' display_options: type: views.display.[%parent.display_plugin] + +block.settings.views_block:*: + type: block_settings + label: 'View block' + mapping: + views_label: + type: label + lable: 'Title' + items_per_page: + type: string + label: 'Items per block' diff --git a/core/modules/views/src/Plugin/Block/ViewsBlockBase.php b/core/modules/views/src/Plugin/Block/ViewsBlockBase.php index 4736fbc..953dfae 100644 --- a/core/modules/views/src/Plugin/Block/ViewsBlockBase.php +++ b/core/modules/views/src/Plugin/Block/ViewsBlockBase.php @@ -171,6 +171,7 @@ public function blockSubmit($form, FormStateInterface $form_state) { else { $this->configuration['views_label'] = ''; } + $form_state->unsetValue('views_label_checkbox'); } /** diff --git a/core/modules/views/src/Plugin/views/display/Block.php b/core/modules/views/src/Plugin/views/display/Block.php index 2c41598..d2bfe26 100644 --- a/core/modules/views/src/Plugin/views/display/Block.php +++ b/core/modules/views/src/Plugin/views/display/Block.php @@ -332,6 +332,7 @@ public function blockSubmit(ViewsBlock $block, $form, FormStateInterface $form_s if ($items_per_page = $form_state->getValue(array('override', 'items_per_page'))) { $block->setConfigurationValue('items_per_page', $items_per_page); } + $form_state->unsetValue(array('override', 'items_per_page')); } /**