Skip to content
Snippets Groups Projects
Commit 1f49eae2 authored by christian.wiedemann's avatar christian.wiedemann
Browse files

ISSUE-#3395953: Fix blocks saving

parent 0d87248a
No related branches found
No related tags found
No related merge requests found
......@@ -41,17 +41,15 @@ class ComponentBlock extends BlockBase {
* {@inheritdoc}
*/
public function blockForm($form, FormStateInterface $form_state) {
$form = parent::blockForm($form, $form_state);
$configuration = $this->getConfiguration();
return $this->buildComponentsForm($form_state, $configuration, NULL, TRUE, TRUE);
return $this->buildComponentsForm($form_state, $configuration['ui_patterns'], NULL, TRUE, TRUE);
}
/**
* {@inheritdoc}
*/
public function blockSubmit($form, FormStateInterface $form_state) {
$this->submitComponentForm($form['settings'], $form_state);
parent::blockSubmit($form, $form_state);
$this->configuration['ui_patterns'] = $form_state->getValue('ui_patterns');
}
}
<?php
/**
* @file
*/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment