Commit 0923a55d authored by webchick's avatar webchick

Issue #2035725 by webflo, sivaji, Xano: Remove visibility__active_tab from block.schema.yml.

parent 6b46e5d3
......@@ -59,9 +59,6 @@ block.block.*:
sequence:
- type: string
label: 'Node type'
visibility__active_tab:
type: string
label: 'Visibility active tab'
plugin:
type: string
label: 'Plugin'
......
......@@ -319,6 +319,7 @@ public function submit(array $form, array &$form_state) {
'values' => &$form_state['values']['settings'],
'errors' => $form_state['errors'],
);
// Call the plugin submit handler.
$entity->getPlugin()->submitConfigurationForm($form, $settings);
......@@ -340,6 +341,21 @@ public function submit(array $form, array &$form_state) {
);
}
/**
* {@inheritdoc}
*/
public function buildEntity(array $form, array &$form_state) {
$entity = parent::buildEntity($form, $form_state);
// visibility__active_tab is Form API state and not configuration.
// @todo Fix vertical tabs.
$visibility = $entity->get('visibility');
unset($visibility['visibility__active_tab']);
$entity->set('visibility', $visibility);
return $entity;
}
/**
* Generates a unique machine name for a block.
*
......
......@@ -18,4 +18,3 @@ visibility:
roles: { }
node_type:
types: { }
visibility__active_tab: edit-visibility-path
......@@ -18,4 +18,3 @@ visibility:
roles: { }
node_type:
types: { }
visibility__active_tab: edit-visibility-path
......@@ -18,4 +18,3 @@ visibility:
roles: { }
node_type:
types: { }
visibility__active_tab: edit-visibility-path
......@@ -18,4 +18,3 @@ visibility:
roles: { }
node_type:
types: { }
visibility__active_tab: edit-visibility-path
......@@ -21,4 +21,3 @@ visibility:
types:
article: '0'
page: '0'
visibility__active_tab: edit-visibility-path
......@@ -21,4 +21,3 @@ visibility:
types:
article: '0'
page: '0'
visibility__active_tab: edit-visibility-path
......@@ -21,4 +21,3 @@ visibility:
types:
article: '0'
page: '0'
visibility__active_tab: edit-visibility-path
......@@ -21,4 +21,3 @@ visibility:
types:
article: '0'
page: '0'
visibility__active_tab: edit-visibility-path
......@@ -21,4 +21,3 @@ visibility:
types:
article: '0'
page: '0'
visibility__active_tab: edit-visibility-path
......@@ -21,4 +21,3 @@ visibility:
types:
article: '0'
page: '0'
visibility__active_tab: edit-visibility-path
......@@ -21,4 +21,3 @@ visibility:
types:
article: '0'
page: '0'
visibility__active_tab: edit-visibility-path
......@@ -21,4 +21,3 @@ visibility:
types:
article: '0'
page: '0'
visibility__active_tab: edit-visibility-path
......@@ -21,4 +21,3 @@ visibility:
types:
article: '0'
page: '0'
visibility__active_tab: edit-visibility-path
......@@ -21,4 +21,3 @@ visibility:
types:
article: '0'
page: '0'
visibility__active_tab: edit-visibility-path
......@@ -21,4 +21,3 @@ visibility:
types:
article: '0'
page: '0'
visibility__active_tab: edit-visibility-path
......@@ -21,4 +21,3 @@ visibility:
types:
article: '0'
page: '0'
visibility__active_tab: edit-visibility-path
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment