Skip to content
Snippets Groups Projects
Commit c6f1a89f authored by ambient.impact's avatar ambient.impact Committed by Derek Laventure
Browse files

Issues #3444231 and #3453060: EmbeddedEnforceForm: build own buttons:

Since we're no longer extending ConfigFormBase, we don't have a
arent::buildForm() to call, so we have to build the form actions.
parent 9153ed87
No related branches found
No related tags found
1 merge request!31Issues #3444231 and #3453060: EmbeddedEnforceForm: build own buttons.
Pipeline #247204 passed with warnings
...@@ -35,16 +35,16 @@ class EmbeddedEnforceForm extends AbstractEnforceForm { ...@@ -35,16 +35,16 @@ class EmbeddedEnforceForm extends AbstractEnforceForm {
$this->addConfigFormInfo(); $this->addConfigFormInfo();
/** @var \Drupal\Core\Form\FormInterface */ $form['config_enforce']['actions'] = [
$form = parent::buildForm($this->form(), $this->formState()); '#type' => 'actions',
'submit' => [
// Move the submit buttons into our container. '#type' => 'submit',
$form['config_enforce']['actions'] = $form['actions']; '#button_type' => 'primary',
unset($form['actions']); '#value' => $this->t(
'Save enforced configuration settings'
$form['config_enforce']['actions']['submit']['#value'] = $this->t( )
'Save enforced configuration settings' ],
); ];
$form = $this->buildFormThemeSettings($form); $form = $this->buildFormThemeSettings($form);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment