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')); } /**