You are here

public function LanguageEditForm::actions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/language/src/Form/LanguageEditForm.php \Drupal\language\Form\LanguageEditForm::actions()

Returns an array of supported actions for the current entity form.

@todo Consider introducing a 'preview' action here, since it is used by many entity types.

Overrides EntityForm::actions

File

core/modules/language/src/Form/LanguageEditForm.php, line 36
Contains \Drupal\language\Form\LanguageEditForm.

Class

LanguageEditForm
Controller for language edit forms.

Namespace

Drupal\language\Form

Code

public function actions(array $form, FormStateInterface $form_state) {
  $actions['submit'] = array(
    '#type' => 'submit',
    '#value' => $this
      ->t('Save language'),
    '#validate' => array(
      '::validateCommon',
    ),
    '#submit' => array(
      '::submitForm',
      '::save',
    ),
  );
  return $actions;
}