Commit bd4b9ae2 authored by webchick's avatar webchick

Issue #2229157 by cwells, LewisNyman, tompagabor: Add correct button types to...

Issue #2229157 by cwells, LewisNyman, tompagabor: Add correct button types to account settings forms.
parent 3ce91753
......@@ -234,7 +234,11 @@ public function buildForm(array $form, array &$form_state, $entity_type_id = NUL
);
$form['actions'] = array('#type' => 'actions');
$form['actions']['submit'] = array('#type' => 'submit', '#value' => $this->t('Save'));
$form['actions']['submit'] = array(
'#type' => 'submit',
'#button_type' => 'primary',
'#value' => $this->t('Save'),
);
$form['#attached']['library'][] = 'field_ui/drupal.field_ui';
......@@ -360,6 +364,7 @@ protected function buildFieldRow(FieldDefinitionInterface $field_definition, Ent
'#type' => 'actions',
'save_settings' => $base_button + array(
'#type' => 'submit',
'#button_type' => 'primary',
'#name' => $field_name . '_plugin_settings_update',
'#value' => $this->t('Update'),
'#op' => 'update',
......
......@@ -269,7 +269,10 @@ public function buildForm(array $form, array &$form_state, $entity_type_id = NUL
$form['fields'] = $table;
$form['actions'] = array('#type' => 'actions');
$form['actions']['submit'] = array('#type' => 'submit', '#value' => $this->t('Save'));
$form['actions']['submit'] = array(
'#type' => 'submit',
'#button_type' => 'primary',
'#value' => $this->t('Save'));
return $form;
}
......
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