Commit f686ce81 authored by Ide Braakman's avatar Ide Braakman Committed by Marcin Grabias
Browse files

Issue #3317188 by idebr: Implement a primary button in Action configuration form

parent 399fed41
Loading
Loading
Loading
Loading
+2 −7
Original line number Original line Diff line number Diff line
@@ -89,16 +89,11 @@ class ConfigureAction extends FormBase {


    // :D Make sure the submit button is at the bottom of the form
    // :D Make sure the submit button is at the bottom of the form
    // and is editable from the action buildConfigurationForm method.
    // and is editable from the action buildConfigurationForm method.
    $form['actions'] = [
    $form['actions'] = ['#type' => 'actions'];
      '#type' => 'actions',
      '#weight' => 666,
    ];
    $form['actions']['submit'] = [
    $form['actions']['submit'] = [
      '#type' => 'submit',
      '#type' => 'submit',
      '#button_type' => 'primary',
      '#value' => $this->t('Apply'),
      '#value' => $this->t('Apply'),
      '#submit' => [
        [$this, 'submitForm'],
      ],
    ];
    ];
    $this->addCancelButton($form);
    $this->addCancelButton($form);