Skip to content
Snippets Groups Projects
Commit a603a3b8 authored by ambient.impact's avatar ambient.impact
Browse files

Merge branch '3444231-fatal-errors-on-config-forms-core-10.2' into '1.0.x'

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

See merge request !31
parents a13ba8db 08d18738
No related branches found
No related tags found
No related merge requests found
Pipeline #193012 passed with warnings
......@@ -35,16 +35,16 @@ class EmbeddedEnforceForm extends AbstractEnforceForm {
$this->addConfigFormInfo();
/** @var \Drupal\Core\Form\FormInterface */
$form = parent::buildForm($this->form(), $this->formState());
// Move the submit buttons into our container.
$form['config_enforce']['actions'] = $form['actions'];
unset($form['actions']);
$form['config_enforce']['actions']['submit']['#value'] = $this->t(
'Save enforced configuration settings'
);
$form['config_enforce']['actions'] = [
'#type' => 'actions',
'submit' => [
'#type' => 'submit',
'#button_type' => 'primary',
'#value' => $this->t(
'Save enforced configuration settings'
)
],
];
$form = $this->buildFormThemeSettings($form);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment